Method removeEmpty documentation
Returns a new array, having removed all elements deemed empty from the given array.
Example
```javascript
bbn.fn.removeEmpty([{prop1: 10, prop2: 20}, '', {}, null, 1, undefined, 0, false, 25]);
// [{prop1: 10, prop2: 20}, 1, 25]
```
Returns a new array, having removed all elements deemed empty from the given array. - Removes all the elements which are empty, i.e. false, 0, null, '', NaN, or undefined.
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.
© 2011-2025
BBN Solutions