Get unlimited public & private packages + team-based management with npm Teams.Learn more »

understreck

0.13.0 • Public • Published

understreck

Lightweight Javascript utility functions library without global dependency. Based on lodash.

Functions

debounce: See lodash
defer: See lodash
not: See lodash
throttle: See lodash
wrap: See lodash

Array

difference: See lodash
differenceBy: See lodash
distinct: See lodash
take: See lodash
union: See lodash
unique: See lodash
uniqueBy: See lodash

Object/Map

extend: See lodash
keys: See lodash
merge: See lodash, but does not mutate objects.
omit: See lodash
pick: See lodash
size: See lodash
transform: See lodash
values: See lodash
createMap: [k1, v1, k2, v2, ...] Creates a map with the given key value pairs.

Collections

clone: See lodash
compact: See lodash
find: See lodash
findIndex: See lodash
flatten: See lodash
flattenDeep: See lodash
filter: [collection, predicate] Returns empty array if collection is undefined, otherwise filters collection using predicate.
forEach: See lodash
get: See lodash
includes: See lodash
intersection: See lodash
keyBy: See lodash
map: See lodash
reduce: See lodash
reduceRight: See lodash
reject: See lodash
shuffle: See lodash
some: See lodash
sortBy: See lodash
containsValue: [collection, element] Returns true if the collection has element as a value, otherwise false
containsKey: [collection, element] Returns true if the collection has element as a key, otherwise false

Lang

isArray: See lodash
isBoolean: See lodash
isDate: See lodash
isElement: See lodash
isEmpty: See lodash
isEqual: See lodash
isFunction: See lodash
isInteger: See lodash
isNil: See lodash
isNull: See lodash
isNumber: See lodash
isObject: See lodash
isRegExp: See lodash
isString: See lodash
isUndefined: See lodash
parseNumber Parses the given string to a number. Will return null if invalid characters exist.

Misc

uniqueId: [optional prefix] Returns a (hopefully) unique id, based on uuid principles.

Install

npm i understreck

DownloadsWeekly Downloads

44

Version

0.13.0

License

MIT

Unpacked Size

12.9 kB

Total Files

4

Last publish

Collaborators

  • avatar