each
Array / object / string iteration utility.
Installation
$ component install component/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