Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects. It's the tie to go along with jQuery's tux.

- Stackoverflow.com Wiki
3 articles, 2 books. Go to books ↓

Stop. For the next 30 days, don’t write any for loops. If you see a nasty pile of those gnarly things, replace them with an each or a map. Do a little reducing.


Function bindAll internally uses bind . And bind internally uses apply. So it is important to understand what apply does.