Framework-independent JavaScript collection methods.
JavaScript Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jsspec @ f5758f9 add jsspec as submodule Apr 13, 2008
lib
specs add Array.slice, global pluck Apr 19, 2008
.gitmodules
CHANGES add Array.slice, global pluck Apr 19, 2008
MIT-LICENSE update readme Apr 6, 2008
README.md Update README.md Jun 16, 2013
Rakefile add thisObject to partitionBy Apr 21, 2008

README.md

Status

This library predates Underscore, Underscore.string, and Lowdash, which I now recommend (and personally use) instead.

Additionally, modern versions of JavaScript (as of ECMAScript 5) include a number of Array methods (forEach, every, some, reduce, filter, indexOf, lastIndexOf, and reduceRight), that provide a substantial subset of what this library provides. Modern browsers support these methods.

Finally, es5-shim is an alternative to Underscore etc. that extends pre-ECMAScript 5 JavaScript implementations with the ECMAScript 5 array methods.

Collections JS

Framework-independent JavaScript collection methods, for use in browser JavaScript and in ActionScript.

The Array and String methods use prototype extension; Hash methods use a proxying wrapper to avoid prototype pollution. The methods with the same names as the ECMAScript 1.6+ extensions have the same spec as those; the ones with the same name as prototype extensions have the same spec as those in the Prototype library; and there's a few odds and ends such as String#capitalize.

The methods are documented in lib/collections.js, and speced (for further documentation, as well as testing) in spec/*.js.

License

Copyright 2007-2008 by Oliver Steele. Available under the MIT License.