Function: truncate()
truncate(
text
,__namedParameters
):string
Defined in: strings.ts:67
Truncates a text so that it is less than maxLen, keeps words intact
Parameters
Parameter | Type |
---|---|
text | string |
__namedParameters | TruncateOptions |
Returns
string