2.0.0 • Published 7 years ago

auxiliary-js v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Auxiliary JS : a utility library

npm install auxiliary-js

var util=require('util');

  1. Each(): to iterate through an array or object
  1. Map(): to modify values of an object or array and return it.
  1. First() and Last() to get the first and last element from the list respectively.
  1. Find(): returns the first matching elements from the array
  1. Filter(): returns all matching elements from the array
  1. Except(): returns all the non matching elements from the array
  1. All(): returns true if all the elements match the given criteria
  1. Any(): returns true if any of the elements match the given criteria
  1. Min() and Max(): returns min and max value from array respectively
  1. Sort(): to sort collections
  1. SortByDesc(): to sort collections in descending order
  1. Count(): to get the count of the elements satisfying the criteria
  1. CountBy(): to get the count of the elements by their types
2.0.0

7 years ago

1.0.0

7 years ago