Method shorten documentation

Shortens the given string after *len* characters.

Example

```javascript //"test***" bbn.fn.shorten('testing', 4, '***'); ``` @example ```javascript //"test..." bbn.fn.shorten('testing', 4); ```

Shortens the given string after *len* characters. - Provides an abbreviation to the string passed as the first argument, deciding through the second argument the number of characters to keep and the remainder replaced by what is passed as the third argument and if not given a defalut it is: '...' BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.