JSFiddle - React, Tailwind, and code Playground
JavaScript
var s = 'not very long';
s.trunc(25); //=> not very long
s.trunc(5); //=> not ...
console.log(s)
var s = 'not very long';
s.trunc(25); //=> not very long
s.trunc(5); //=> not ...
console.log(s)