@datorama/utils
TypeScript icon, indicating that this package has built-in type declarations

1.23.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.23.1
    4
    • latest

Version History

Package Sidebar

Install

npm i @datorama/utils

Weekly Downloads

5

Version

1.23.1

License

MIT

Unpacked Size

718 kB

Total Files

87

Last publish

Collaborators

  • mohamadhusari
  • natassor
  • ebelenki
  • meireliezer-salesforce
  • rsvilemshema
  • omilitscher
  • bdimand
  • mperets
  • ssegal
  • maliperlman
  • distroy123
  • aavgil
  • ori007
  • yonatanlevy
  • jmeguira
  • abh86
  • keinans
  • gurdotan
  • org86
  • iglikman
  • ashakked
  • lron
  • samerkinaan
  • amitb
  • nhaimov
  • eliran.aharoni
  • ritox
  • ofirb25
  • yousef.baba
  • netbasal
  • kaufguy
  • idafna
  • shahar.kazaz