each
Array / object / string iteration utility.
Installation
Install with component:
$ component install yiwn/each
Install with npm for browserify:
$ npm install yiwn-each
API
each(array, fn[, ctx])
Iterate an array:
Optionally pass a context object:
each(object, fn[, ctx])
Iterate an object's key / value pairs:
Iterate an array-ish object (has numeric .length
):
each(string, fn[, ctx])
Iterate a string's characters:
License
MIT