0.5.110 • Published 8 years ago

underscore2 v0.5.110

Weekly downloads
2
License
GPL-2.0
Repository
github
Last release
8 years ago

Underscore2

Underscore-like library that provide a set of useful functions for Meteor.

Not Production Ready

Do not use this package for your serious project yet.

Installation

npm install underscore2 # not yet

Dependency

Meteor 1.0 and coffee script 1.8 Lower version of coffee script may be ok.

Underscore

Collections

  • each: use .forEach
  • map: use .map
  • reduce: use .reduce
  • reduceRight use .reduceRight
  • find: find all object list
  • filter: use .filter
  • where: need?
  • findWhere: find the first object list
  • reject: use .filter
  • every: write x.all
  • some: write x.any
  • contains: use .indexOf
  • invoke: array of array
  • pluck: extracting a list of property values. object list
  • max: useful with object list
  • min: same
  • sortBy
  • groupBy
  • indexBy
  • countBy
  • shuffle: need?
  • sample: need?
  • toArray: arguments? x.array
  • size: number of values. Why?
  • partition: seperate an Array, true of false. Arrays
  • first ..n
  • initial Except the last element. ..-2
  • last -1..
  • rest 1..
  • compact false, null, 0, "", undefined and NaN are all falsy.
  • flatten:
  • without: array without arguments.
  • union:
  • intersection
  • difference
  • uniq
  • zip
  • unzip
  • object
  • indexOf
  • lastIndexOf
  • sortedIndex
  • findIndex
  • findLastIndex
  • range Functions
  • bind .bind
  • bindAll forEach .bind
  • partial .bind
  • memoize
  • delay: setTimeout
  • defer
  • throttle
  • debounce
  • once
  • after: Function that will be run after first being called count times.
  • before
  • wrap
  • negate
  • compose Objects
  • keys
  • allKeys
  • values
  • mapObject
  • pairs
  • invert
  • create
  • functions
  • findKey
  • extend
  • extendOwn
  • pick
  • omit
  • defaults
  • clone
  • tap
  • has
  • matcher
  • property
  • propertyOf
  • isEqual
  • isMatch
  • isEmpty
  • isElement
  • isArray
  • isObject
  • isArguments
  • isFunction
  • isString
  • isNumber
  • isFinite
  • isBoolean
  • isDate
  • isRegExp
  • isNaN
  • isNull
  • isUndefined Utility
  • noConflict
  • identity
  • constant
  • noop
  • times
  • random
  • mixin
  • iteratee
  • uniqueId
  • escape
  • unescape
  • result
  • now
  • template Chaining
  • chain
  • value

Resources

  • meteor
  • coffee-script
  • underscore
0.5.110

8 years ago

0.5.109

8 years ago

0.5.108

8 years ago

0.5.107

8 years ago

0.5.106

8 years ago

0.5.105

8 years ago

0.5.104

8 years ago

0.5.103

8 years ago

0.5.102

8 years ago

0.5.101

8 years ago

0.5.100

8 years ago

0.5.99

8 years ago

0.5.98

8 years ago

0.5.97

8 years ago

0.5.96

8 years ago

0.5.95

8 years ago

0.5.94

8 years ago

0.5.93

8 years ago

0.5.92

8 years ago

0.5.91

8 years ago

0.5.90

8 years ago

0.5.74

8 years ago

0.5.73

8 years ago

0.5.72

8 years ago

0.5.71

8 years ago

0.5.70

8 years ago

0.5.69

8 years ago

0.5.68

8 years ago

0.5.67

8 years ago

0.5.66

8 years ago

0.5.65

8 years ago

0.5.64

8 years ago

0.5.63

8 years ago

0.5.62

8 years ago

0.5.61

8 years ago

0.5.60

8 years ago

0.5.58

8 years ago

0.5.57

8 years ago

0.5.56

8 years ago

0.5.55

8 years ago

0.5.54

8 years ago

0.5.53

8 years ago

0.5.52

8 years ago

0.5.51

8 years ago

0.5.50

8 years ago

0.5.49

8 years ago

0.5.48

8 years ago

0.5.47

8 years ago

0.5.46

8 years ago

0.5.45

8 years ago

0.5.44

8 years ago

0.5.43

8 years ago

0.5.42

8 years ago

0.5.41

8 years ago

0.5.40

8 years ago

0.5.32

8 years ago

0.5.31

8 years ago

0.5.30

8 years ago

0.5.29

8 years ago

0.5.28

8 years ago

0.5.27

8 years ago

0.5.26

8 years ago

0.5.24

8 years ago

0.5.23

8 years ago

0.5.22

8 years ago

0.5.15

8 years ago

0.5.14

8 years ago

0.5.13

8 years ago

0.5.12

8 years ago

0.5.11

8 years ago

0.5.10

8 years ago

0.5.3

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.103

8 years ago

0.4.100

8 years ago

0.4.91

8 years ago

0.4.90

8 years ago

0.4.89

8 years ago

0.4.88

10 years ago

0.4.87

10 years ago

0.4.85

10 years ago

0.4.84

10 years ago

0.4.83

10 years ago

0.4.82

10 years ago

0.4.81

10 years ago

0.4.80

10 years ago

0.4.78

10 years ago

0.4.77

10 years ago