XuelesszzZ 94af2b8e7b 6-30-5 1 жил өмнө
..
test 94af2b8e7b 6-30-5 1 жил өмнө
.editorconfig 94af2b8e7b 6-30-5 1 жил өмнө
.eslintrc 94af2b8e7b 6-30-5 1 жил өмнө
.travis.yml 94af2b8e7b 6-30-5 1 жил өмнө
LICENSE 94af2b8e7b 6-30-5 1 жил өмнө
README.md 94af2b8e7b 6-30-5 1 жил өмнө
index.js 94af2b8e7b 6-30-5 1 жил өмнө
package.json 94af2b8e7b 6-30-5 1 жил өмнө

README.md

for-each build status

browser support

A better forEach.

Example

Like Array.prototype.forEach but works on objects.

var forEach = require("for-each")

forEach({ key: "value" }, function (value, key, object) {
    /* code */
})

As a bonus, it's also a perfectly function shim/polyfill for arrays too!

var forEach = require("for-each")

forEach([1, 2, 3], function (value, index, array) {
    /* code */
})

Installation

npm install for-each

Contributors

  • Raynos

MIT Licenced