General node js utils library.
Currently supported utils:
camelize
- simple camel casecapitalize
- make first char uppercasecloneDeep
- deep clone functionality for objectsdifference
- creates an array of values from the first argument not included in the second argumentflow
- generate a composite function that returns the result of provided functions called by the chain; each previous function result passes as the argument of the next function in the chainfreezeDeep
- deep freezes objectsget
- get the object members by pathgetArrayHasIntersect
- checks if arrays have at least one common valuegetArrayUniq
- gets unique values form arrayinvert
- Inverts the key-value pairs of an objectgroupBy
- groups the elements of an array by a specified key.isEmpty
- checks if value is an empty object, collection, map, or setisEqual
- check if passed two values are equalisFinite
- checks if input is a finite number.isFunction
- checks if input is a Function object.isNil
- checks whenever value is null or undefinedisNumber
- checks if input is a number.isObject
- checks if the input is not a nullable object instanceisPlainObject
- checks if input is object, not null object and not array objectisString
- checks if input is a stringmapKeys
- creates new object with the same values but with keys mapped by the provided functionmapValues
- Maps the values of an object or array using the provided iteratee function or property pathmax
- computes the maximum value of array. If array is empty or falsey, undefined is returnedmerge
- deep merge functionality for objectsmin
- computes the minimum value of array. If array is empty or falsey, undefined is returnedomit
- provides new object that omits only specific fields of source objectomitBy
- provides new object that omits only specific fields of source object depending on predicate function filterpick
- provides new object that picks only specific fields of source objectpickBy
- provides new object that picks only specific fields of source object depending on predicate function filterresolvePromiseCb
- helper to add callback support to async functionsshuffle
- performs pseudo random shuffle on clone of the arraysnakeCase
- convert camel case and string/dash separated strings to snake casesum
- calculate sum of array itemssumBy
- calculate sum of array items using iteratee function or string shortcutuniqBy
- get unique values of array by the iteratee function or property pathvalidateInput
- validates the input based on the regex format options:NUMBER | EMAIL | PATH | NAME | NAME_WITH_DIGITS | INPUT | ADDRESS | PHONE_CODE | PHONE | IMAGE | FILE | FILENAME | PASSWORD
without
- creates an array of values from the first argument excluding all given arguments