Methods
cutoffString(str, max) → {string}
Trims a string based on a max length and appends with ...
Parameters:
Name | Type | Description |
---|---|---|
str |
string | String to trim |
max |
number | Max length to trim by |
- Source:
Returns:
Trimmed string
- Type
- string