0.5.110 • Published 7 years ago

underscore2 v0.5.110

Weekly downloads
2
License
GPL-2.0
Repository
github
Last release
7 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

7 years ago

0.5.109

7 years ago

0.5.108

7 years ago

0.5.107

7 years ago

0.5.106

7 years ago

0.5.105

7 years ago

0.5.104

7 years ago

0.5.103

7 years ago

0.5.102

7 years ago

0.5.101

7 years ago

0.5.100

7 years ago

0.5.99

7 years ago

0.5.98

7 years ago

0.5.97

7 years ago

0.5.96

7 years ago

0.5.95

7 years ago

0.5.94

7 years ago

0.5.93

7 years ago

0.5.92

7 years ago

0.5.91

7 years ago

0.5.90

7 years ago

0.5.74

7 years ago

0.5.73

7 years ago

0.5.72

7 years ago

0.5.71

7 years ago

0.5.70

7 years ago

0.5.69

7 years ago

0.5.68

7 years ago

0.5.67

7 years ago

0.5.66

7 years ago

0.5.65

7 years ago

0.5.64

7 years ago

0.5.63

7 years ago

0.5.62

7 years ago

0.5.61

7 years ago

0.5.60

7 years ago

0.5.58

7 years ago

0.5.57

7 years ago

0.5.56

7 years ago

0.5.55

7 years ago

0.5.54

7 years ago

0.5.53

7 years ago

0.5.52

7 years ago

0.5.51

7 years ago

0.5.50

7 years ago

0.5.49

7 years ago

0.5.48

7 years ago

0.5.47

7 years ago

0.5.46

7 years ago

0.5.45

7 years ago

0.5.44

7 years ago

0.5.43

7 years ago

0.5.42

7 years ago

0.5.41

7 years ago

0.5.40

7 years ago

0.5.32

7 years ago

0.5.31

7 years ago

0.5.30

7 years ago

0.5.29

7 years ago

0.5.28

7 years ago

0.5.27

7 years ago

0.5.26

7 years ago

0.5.24

7 years ago

0.5.23

7 years ago

0.5.22

7 years ago

0.5.15

7 years ago

0.5.14

7 years ago

0.5.13

7 years ago

0.5.12

7 years ago

0.5.11

7 years ago

0.5.10

7 years ago

0.5.3

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.103

7 years ago

0.4.100

7 years ago

0.4.91

7 years ago

0.4.90

7 years ago

0.4.89

7 years ago

0.4.88

9 years ago

0.4.87

9 years ago

0.4.85

9 years ago

0.4.84

9 years ago

0.4.83

9 years ago

0.4.82

9 years ago

0.4.81

9 years ago

0.4.80

9 years ago

0.4.78

9 years ago

0.4.77

9 years ago