auxiliary-js
v2.0.0
Published
Auxiliary JS : a utility library ================================================================== <h4>Installation:<h4>
Downloads
3
Readme
Auxiliary JS : a utility library
npm install auxiliary-js
var util=require('util');
- Each(): to iterate through an array or object
- Map(): to modify values of an object or array and return it.
- First() and Last() to get the first and last element from the list respectively.
- Find(): returns the first matching elements from the array
- Filter(): returns all matching elements from the array
- Except(): returns all the non matching elements from the array
- All(): returns true if all the elements match the given criteria
- Any(): returns true if any of the elements match the given criteria
- Min() and Max(): returns min and max value from array respectively
- Sort(): to sort collections
- SortByDesc(): to sort collections in descending order
- Count(): to get the count of the elements satisfying the criteria
- CountBy(): to get the count of the elements by their types