Returns a string that abbreviates the given text using placeholder
Optional
the text to inspect
the max width of the expected string
the placeholder to append
a string that abbreviates the given text using placeholder
abbreviate('foobar', -1); // 'foobar'abbreviate('foobar', 0); // ''abbreviate('foobar', 5); // 'fo...'abbreviate('foobar', 6); // 'foobar'abbreviate('foobar', 10); // 'foobar' Copy
abbreviate('foobar', -1); // 'foobar'abbreviate('foobar', 0); // ''abbreviate('foobar', 5); // 'fo...'abbreviate('foobar', 6); // 'foobar'abbreviate('foobar', 10); // 'foobar'
Returns a string that abbreviates the given text using placeholder