Count | Function | Note |
---|---|---|
539 | _.each | |
212 | _.extend | |
184 | _.has | |
121 | _.map | |
83 | _.keys | |
76 | _.isEmpty | |
71 | _.pluck | |
56 | _.contains | |
54 | _.clone | |
50 | _.bind | |
46 | _.identity | |
40 | _.isArray | |
38 | _.toArray | |
33 | _.any | |
32 | _.isObject | |
32 | _.find | |
30 | _.all | |
27 | _.size | |
23 | _.isEqual | |
19 | _.isFunction | |
17 | _.times | |
17 | _.filter | |
15 | _.flatten | |
14 | _.pick | |
12 | _.last | |
12 | _.indexOf | |
11 | _.without | |
11 | _.isNaN | |
10 | _.once | |
10 | _.isArguments | |
9 | _.range | |
9 | _.omit | |
7 | _.values | |
7 | _.shuffle | |
7 | _.difference | |
6 | _.reduce | |
6 | _.include | |
6 | _.defaults | |
5 | _.zip | |
5 | _.uniq | |
5 | _.union | |
5 | _.reject | |
5 | _.memoize | |
5 | _.groupBy | |
5 | _.defer | |
4 | _.template | |
4 | _.some | |
4 | _.max | |
4 | _.isUndefined | |
4 | _.every | |
4 | _.compact | |
3 | _.uniqueId | |
3 | _.throttle | |
3 | _.rest | |
3 | _.random | |
3 | _.object | |
3 | _.escape | |
3 | _.delay | |
3 | _.chain | |
2 | _.where | |
2 | _.unique | |
2 | _.templateSettings | |
2 | _.sortedIndex | |
2 | _.mixin | |
2 | _.lastIndexOf | |
2 | _.invert | |
2 | _.intersection | |
2 | _.initial | |
2 | _.functions | |
2 | _.first | |
2 | _.findWhere | |
2 | _.bindAll | |
2 | _.after | |
1 | _.wrap | |
1 | _.tap | |
1 | _.take | |
1 | _.tail | |
1 | _.sortBy | |
1 | _.select | |
1 | _.sample | |
1 | _.result | |
1 | _.reduceRight | |
1 | _.partial | |
1 | _.pairs | |
1 | _.noConflict | |
1 | _.min | |
1 | _.methods | |
1 | _.isNull | |
1 | _.isFinite | |
1 | _.isElement | |
1 | _.isBoolean | |
1 | _.invoke | |
1 | _.inject | |
1 | _.indexBy | |
1 | _.head | |
1 | _.forEach | |
1 | _.foldr | |
1 | _.foldl | |
1 | _.drop | |
1 | _.detect | |
1 | _.debounce | |
1 | _.countBy | |
1 | _.compose | |
1 | _.collect | |
1 | _.allKeys | |
1 | _.VERSION |
Last active
February 17, 2017 13:19
-
-
Save abernix/dd74d99683828ca1675bdbd26a0143de to your computer and use it in GitHub Desktop.
Underscore Uses in Meteor
Counts | Function | Note |
---|---|---|
1838 | _.each | |
772 | _.extend | |
696 | _.has | |
390 | _.map | |
284 | _.isEmpty | |
230 | _.keys | |
198 | _.clone | |
180 | _.pluck | |
180 | _.contains | |
104 | _.bind | |
102 | _.any | |
100 | _.isArray | |
100 | _.identity | |
96 | _.find | |
86 | _.filter | |
82 | _.isObject | |
80 | _.toArray | |
70 | _.isEqual | |
66 | _.last | |
66 | _.all | |
58 | _.size | |
46 | _.isFunction | |
44 | _.pick | |
42 | _.times | |
38 | _.without | |
36 | _.uniq | |
34 | _.flatten | |
32 | _.some | |
32 | _.indexOf | |
28 | _.findWhere | |
26 | _.values | |
24 | _.range | |
22 | _.sortBy | |
22 | _.once | |
22 | _.omit | |
22 | _.isNaN | |
22 | _.difference | |
20 | _.union | |
20 | _.isArguments | |
20 | _.compact | |
18 | _.object | |
18 | _.max | |
18 | _.every | |
16 | _.memoize | |
16 | _.include | |
14 | _.shuffle | |
14 | _.reduce | |
14 | _.intersection | |
14 | _.groupBy | |
12 | _.reject | |
12 | _.defaults | |
10 | _.zip | |
10 | _.partial | |
10 | _.forEach | |
10 | _.defer | |
8 | _.template | |
8 | _.isUndefined | |
8 | _.initial | |
8 | _.chain | |
6 | _.uniqueId | |
6 | _.throttle | |
6 | _.rest | |
6 | _.random | |
6 | _.first | |
6 | _.escape | |
6 | _.delay | |
4 | _.where | |
4 | _.unique | |
4 | _.templateSettings | |
4 | _.sortedIndex | |
4 | _.mixin | |
4 | _.lastIndexOf | |
4 | _.invert | |
4 | _.functions | |
4 | _.bindAll | |
4 | _.after | |
2 | _.wrap | |
2 | _.tap | |
2 | _.take | |
2 | _.tail | |
2 | _.select | |
2 | _.sample | |
2 | _.result | |
2 | _.reduceRight | |
2 | _.pairs | |
2 | _.noConflict | |
2 | _.min | |
2 | _.methods | |
2 | _.isNull | |
2 | _.isFinite | |
2 | _.isElement | |
2 | _.isBoolean | |
2 | _.invoke | |
2 | _.inject | |
2 | _.indexBy | |
2 | _.head | |
2 | _.foldr | |
2 | _.foldl | |
2 | _.drop | |
2 | _.detect | |
2 | _.debounce | |
2 | _.countBy | |
2 | _.compose | |
2 | _.collect | |
2 | _.allKeys | |
2 | _.VERSION |
Count | Function | Note |
---|---|---|
380 | _.each | |
174 | _.extend | |
164 | _.has | |
74 | _.map | |
66 | _.isEmpty | |
45 | _.clone | |
34 | _.contains | |
32 | _.keys | |
26 | _.filter | |
21 | _.last | |
19 | _.pluck | |
18 | _.any | |
16 | _.find | |
13 | _.uniq | |
12 | _.some | |
12 | _.isEqual | |
12 | _.findWhere | |
10 | _.sortBy | |
10 | _.isArray | |
9 | _.isObject | |
8 | _.without | |
8 | _.pick | |
6 | _.values | |
6 | _.object | |
6 | _.compact | |
5 | _.union | |
5 | _.max | |
5 | _.intersection | |
5 | _.every | |
4 | _.times | |
4 | _.partial | |
4 | _.isFunction | |
4 | _.indexOf | |
4 | _.identity | |
4 | _.forEach | |
4 | _.difference | |
3 | _.range | |
3 | _.memoize | |
3 | _.all | |
2 | _.toArray | |
2 | _.size | |
2 | _.omit | |
2 | _.initial | |
2 | _.include | |
2 | _.groupBy | |
2 | _.flatten | |
2 | _.bind | |
1 | _.reject | |
1 | _.reduce | |
1 | _.once | |
1 | _.first | |
1 | _.chain |
@zeroasterisk You spy! 😉 Yes, you caught me (I don't get notifications on Gists, evidently).
The answer is, I'm doing both. Lodash is super awesome at a lot of things, but the modern JavaScript ecosystem is something we should be proud of and embrace when possible. Each of these many, many functions has a consideration to be made!
Stay tuned! (Also, more updates soon).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oooooh.... are you working on replacing underscore with lodash, or just ES6-ing it out? either way, kudos. It's a great tool, but one I'd love to not have to load alongside lodash... And perhaps as I get more and more comfortable with ES6, neither.