prorm API Reference
← Documentation
GitLab
Preparing search index...
index
truncate
Function truncate
truncate
(
str
:
string
,
maxLength
:
number
,
suffix
?:
string
)
:
string
Truncate string to specified length
Parameters
str
:
string
maxLength
:
number
suffix
:
string
= '...'
Returns
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
← Documentation
GitLab
prorm API Reference
Loading...
Truncate string to specified length