Truncates a string up to a specified length
truncate('boomerang', 7); // 'boom...'
truncate('boomerang', 7, '....'); // 'boo....'
Optional
Generated using TypeDoc
Truncates a string up to a specified length
Example
Example