Awesome utils to rock life
Utils is divided into a few sections, which we'll cover here one by one.
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 |