understreck
v0.14.0
Published
Lightweight Javascript utility functions library without global dependency. Based on lodash.
Downloads
34
Maintainers
Readme
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
set: 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.