D
Dashlite
HomeDocumentationGitHubnpm

Documentation

Array(39)

  • chunk
  • compact
  • fill
  • findIndex
  • findLastIndex
  • first
  • flatten
  • flattenDeep
  • flattenDepth
  • fromPairs
  • head
  • indexOf
  • join
  • last
  • lastIndexOf
  • nth
  • pull
  • pullAll
  • pullAllBy
  • pullAllWith
  • pullAt
  • remove
  • reverse
  • slice
  • sortedIndex
  • sortedIndexBy
  • sortedIndexOf
  • sortedLastIndex
  • sortedLastIndexBy
  • sortedLastIndexOf
  • sortedUniq
  • sortedUniqBy
  • tail
  • take
  • takeRight
  • takeRightWhile
  • takeWhile
  • uniq
  • uniqBy

Function(3)

  • debounce
  • memoize
  • throttle

Math(15)

  • add
  • ceil
  • divide
  • floor
  • max
  • maxBy
  • mean
  • meanBy
  • min
  • minBy
  • multiply
  • round
  • subtract
  • sum
  • sumBy

Object(4)

  • clone
  • merge
  • omit
  • pick

String(4)

  • camelCase
  • capitalize
  • kebabCase
  • truncate

Type(3)

  • isArray
  • isEmpty
  • isObject
Category

Object

Utilities for manipulating objects

pick

Creates an object composed of the picked object properties.

pick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>

omit

Creates an object composed of properties that are not omitted.

omit<T, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>

merge

Recursively merges own and inherited enumerable string keyed properties of source objects into the destination object.

merge<T>(target: T, ...sources: Partial<T>[]): T

clone

Creates a deep clone of value. Supports cloning arrays, objects, Date, RegExp, Map, and Set.

clone<T>(value: T): T

Dashlite

A modern, type-safe utility library for JavaScript and TypeScript applications.

Resources

  • GitHub Repository
  • npm Package
  • Report Issues

Legal

  • MIT License

Built with ❤️ by Safwan