fabien_
Re:You Might Not Need Underscore
on Friday July 03, 2015 @09:40AM (#9825506)
Underscore : _.each(array, iteratee)
ES5.1 : array.forEach(iteratee)
And all the other elements...
Yes, you are right. But... The "array" is not always an Array. document.getElementsByClassName( 'myClass' ) is not an Array but a DOMNodeList. So document.getElementsByClassName( 'myClass' ).forEach(iteratee) will not work. Same for map, reduce...
Underscore (or lodash) makes more that just polyfilling es5 methods.