Skip to content
This repository has been archived by the owner on Jun 24, 2018. It is now read-only.
/ collections-js Public archive

Framework-independent JavaScript collection methods.

License

Notifications You must be signed in to change notification settings

osteele/collections-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Framework-independent JavaScript collection methods.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published