Preparing search index...
The search index is not available
common-stuff
common-stuff
truncate
Function truncate
truncate
(
value
,
length
,
ending
?
)
:
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