Truncate API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
content | string | "" | The string to be truncated. |
maxLength | number | Infinity | The maximum length of the truncated string, excluding the ellipsis character. |
end | number | 0 | The length of the trailing portion to preserve. |