Skip to content

Javascript help functions without global dependency.

Notifications You must be signed in to change notification settings

gulllberg/understreck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Javascript help functions without global dependency.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •