« Browser support for CSS3 and HTML5 | Main | Sorteio de um HTC Magic da Vodafone »
November 1, 2009
Underscore.js
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.Underscore provides 45-odd functions that support both the usual functional suspects: map, select, invoke -- as well as more specialized helpers: function binding, javascript templating, deep equality testing, and so on. It delegates to built-in functions, if present, so JavaScript 1.6 compliant browsers will use the native implementations of forEach, map, filter, every, some and indexOf.
Underscore includes a complete Test & Benchmark Suite for your perusal.
The unabridged source code is available on GitHub.
Posted by Carlos Nossa at November 1, 2009 3:54 PM
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)