Jeremy Ashkena씨는 작고 유용한 자바스크립트 라이브러리인 Underscore.js를 공개했습니다. 달러("$")가 아닌 언더스코어("_")를 사용하기 때문에 Prototype이나 jQuery의 코어를 확장하지 않는 형태로 Collections, Arrays, Functions, Objects에 대한 45개의 유틸리티 함수들을 제공합니다. 그리고 자바스크립트 1.6에서 제공하는 순수 기능 활용하기 때문에 브라우저가 이를 지원한다면 풀-스피드로 작동하게 됩니다. 벤치마크 페이지에서 직접 테스트 해 보세요.
var func = function(greeting){ return greeting + ': ' + this.name };
func = _.bind(func, {name : 'moe'}, 'hi');
func(); //=> 'hi: moe'
Collections :
each, map,
reduce, reduceRight,
detect, select,
reject, all,
any, include,
invoke, pluck,
max, min,
sortBy, sortedIndex,
toArray, size
Arrays :
first, last,
compact, flatten, without, uniq,
intersect, zip, indexOf,
lastIndexOf
Functions :
bind, bindAll, delay,
defer, wrap, compose
Objects :
keys, values,
extend, clone, isEqual, isElement,
isArray, isFunction, isUndefined
Utility :
noConflict,
identity, uniqueId,
template