Underscore.js (1.7.0)-函数预览
集合(Collections)(25)
- - each
- - map
- - reduce
- - reduceRight
- - find
- - filter
- - where
- - findWhere
- - reject
- - every
- - some
- - contains
- - invoke
- - pluck
- - max
- - min
- - sortBy
- - groupBy
- - indexBy
- - countBy
- - shuffle
- - sample
- - toArray
- - size
- - partition
数组(Arrays)(17)
- - first
- - initial
- - last
- - rest
- - compact
- - flatten
- - without
- - union
- - intersection
- - difference
- - uniq
- - zip
- - object
- - indexOf
- - lastIndexOf
- - sortedIndex
- - range
函数(Functions)(14)
- - bind
- - bindAll
- - partial
- - memoize
- - delay
- - defer
- - throttle
- - debounce
- - once
- - after
- - before
- - wrap
- - negate
- - compose
对象(Objects)(30)
- - keys
- - values
- - pairs
- - invert
- - functions
- - extend
- - pick
- - omit
- - defaults
- - clone
- - tap
- - has
- - matches
- - property
- - isEqual
- - isEmpty
- - isElement
- - isArray
- - isObject
- - isArguments
- - isFunction
- - isString
- - isNumber
- - isFinite
- - isBoolean
- - isDate
- - isRegExp
- - isNaN
- - isNull
- - isUndefined
工具函数(Utility)(14)
- - noConflict
- - identity
- - constant
- - noop
- - times
- - random
- - mixin
- - iteratee
- - uniqueId
- - escape
- - unescape
- - result
- - now
- - template
原创文章请随便转载。愿和大家分享,并且一起进步。-- 江 coder