@eitje/web_utils

Beautiful utility functions to make life a breeze


License
ISC
Install
npm install @eitje/web_utils@1.0.15-alpha

Documentation

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

Date

General

Number

String

Presentation