🔽Shorten
shorten ⇒ string
string
Shorten text to a specific length and add ellipses if necessary.
Kind: global variable
Returns: string
- Original or shortened text
Param | Type | Description |
---|---|---|
text |
| Text to be shortened |
len |
| Maximum length of text before shortening |
Last updated