code
ref
Cheat Sheets
Quick Reference
JSON Formatter
Learn
Tools
Browser Support
Search…
Ctrl K
Cheat Sheets
/
Frameworks
/
Underscore.js
Underscore.js
Underscore.js helpers for collections, arrays, functions, objects and utilities.
Official reference ↗
Collections
_.each
_.map
_.reduce
_.reduceRight
_.find
_.filter
_.findWhere
_.where
_.reject
_.every
_.some
_.contains
_.invoke
_.pluck
_.max
_.min
_.sortBy
_.groupBy
_.indexBy
_.countBy
_.shuffle
_.sample
_.toArray
_.size
_.partition
Arrays
_.first
_.initial
_.last
_.rest
_.compact
_.flatten
_.without
_.union
_.intersection
_.difference
_.uniq
_.zip
_.unzip
_.object
_.chunk
_.indexOf
_.lastIndexOf
_.sortedIndex
_.findIndex
_.findLastIndex
_.range
Functions
_.bind
_.bindAll
_.partial
_.memoize
_.delay
_.defer
_.throttle
_.debounce
_.once
_.after
_.before
_.wrap
_.negate
_.compose
_.restArguments
Objects
Access
_.keys
_.allKeys
_.values
_.mapObject
_.pairs
_.invert
_.create
_.functions
_.findKey
_.extend
_.extendOwn
_.pick
_.omit
_.defaults
_.clone
_.tap
_.has
_.property
_.propertyOf
_.matcher
Type Checks
_.isEqual
_.isMatch
_.isEmpty
_.isElement
_.isArray
_.isObject
_.isArguments
_.isFunction
_.isString
_.isNumber
_.isFinite
_.isBoolean
_.isDate
_.isRegExp
_.isError
_.isSymbol
_.isMap
_.isSet
_.isNaN
_.isNull
_.isUndefined
Utility
_.noConflict
_.identity
_.constant
_.noop
_.times
_.random
_.mixin
_.iteratee
_.uniqueId
_.escape
_.unescape
_.result
_.now
_.template
Chaining
_.chain
_.value