Skip to content

bitfinexcom/lib-js-util-base

Repository files navigation

lib-js-util-base

General node js utils library.

Currently supported utils:

  • getArrayHasIntersect - checks if arrays have at least one common value
  • getArrayUniq - gets unique values form array
  • isEmpty - Checks if value is an empty object, collection, map, or set
  • isNil - checks whenever value is null or undefined
  • isPlainObject - checks if input is object, not null object and not array object
  • pick - provides new object that picks only specific fields of source object
  • pickBy - provides new object that picks only specific fields of source object depending on predicate function filter
  • camelize - simple camel case