object-iterators
The object iterators, similar in function to those found in underscore.js.
NOTE: As of v1.2.0, object-iterators is now a simple node module. It is no longer a "modified node module" (containing its own closure for use directly in a browser).
Synopsis
Node.js:
var Base = Base;
Browser:
Usage example:
var obj = id: 30 name: 'Jack' gender: 'male'; ;// id 30// name Jack// gender male// true // 130 ;// Jack;// undefined { console; }
API documentation
Detailed API docs can be found here.
Demo
A demo can be found here.
Or see the Underscore docs:
Just keep in mind that these are for objects only (not arrays).
CDN versions
To use in a browser, you have two options:
- Incorporate the node module into your own browserified project.
- Use the browserified versions
object-iterators.js
orobject-iterators.min.js
available on the Github pages CDN.
Submodules
See the note Regarding submodules for important information on cloning this repo or re-purposing its build template.