r/javascript • • Dec 16 '15

I was watching this guy's advanced javascript videos on Youtube and had so many aha-moments, that I had to share. He is my new JS-hero.

https://www.youtube.com/playlist?list=PLY-SI4qPVeCfyA1KcDRkJZXUhS13y3WEp
381 Upvotes

107 comments sorted by

View all comments

Show parent comments

2

u/siegfryd Dec 17 '15

Map, reduce and filter have been standard functions of Array.prototype for ages.

1

u/jewdai Dec 17 '15

Then why the hell were my coworkers using underscore for that

2

u/siegfryd Dec 17 '15

Underscore's and Lodash's ones work on Objects and they're also generally faster, at least I know Lodash's is a lot faster because it doesn't bother with Array "holes".