common-stuff
Preparing search index...
truncate
Function truncate
truncate
(
value
:
string
,
length
:
number
,
ending
?:
string
)
:
string
Truncates string
Parameters
value
:
string
length
:
number
ending
:
string
= '...'
Returns
string
Example
truncate
(
'Hello world'
,
8
)
// Hello...
Copy
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
common-stuff
Loading...
Truncates string