@eitje/utils
v1.0.39
Published
Beautiful utility functions to make life a breeze
Readme
Awesome utils to rock life
Utils is divided into a few sections, which we'll cover here one by one.
Collections
All functions having to do with object/arrays.
| Key | Params | Explanation |
| ------------- |:-------------:| -----:|
| getMax | (collection: Array, key: String) | returns the object with the highest value of key out of the collection |
| getMin | same | inverted getMax |
| search | (items: Array, query: String, {field: String = 'label'} | Searches through items, matching items whose field is like the value of query
