@datorama/utils

Datorama utils

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@datorama/utils
Minified + gzip package size for @datorama/utils in KB

Readme

API reference can be found at: https://datorama.github.io/FE/utils

Array

  • intersection
  • union
  • difference
  • differenceBy
  • findIndex
  • minBy
  • last
  • uniq
  • uniqBy
  • drop

Coercion

  • toBoolean
  • toNumber
  • toString
  • coerceArray

Collection

  • findKey
  • sortBy
  • find
  • forEach
  • map
  • keyBy
  • reject
  • groupBy
  • filter
  • size
  • rawDiff

Function

  • throttle
  • debounce
  • curry
  • compose
  • partial

Number

  • round
  • random
  • isFraction

Object

  • get
  • has
  • mapValues
  • mapKeys
  • values
  • merge
  • diff
  • cloneDeep
  • omit
  • omitBy
  • deepEqual
  • invert

String

  • escape
  • unescape
  • escapeRegExp
  • capitalize
  • camelCase
  • kebabCase
  • createGUID
  • isEmptyString

Validators

  • isFunction
  • isObject
  • isEmpty
  • isNumber
  • isEqual
  • isString
  • isBoolean

Enums

  • ContentType
  • KeyCodes

Regex

  • validUrl

Sort Comparators

  • dateCompare

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.