You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nitowa 1dae68b1c7 init 1 yıl önce
..
test init 1 yıl önce
.editorconfig init 1 yıl önce
.eslintrc init 1 yıl önce
.travis.yml init 1 yıl önce
LICENSE init 1 yıl önce
README.md init 1 yıl önce
index.js init 1 yıl önce
package.json init 1 yıl önce

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