/ live.thehmm.nl / back / node_modules / for-each /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/2 years ago -  
[   ]LICENSE39 years ago1.0K 
[   ]index.js39 years ago1.7K 
[   ]package.json2 years ago2.4K 
[TXT]README.md39 years ago746 d7c1522 post receive test [كارل مبارك]
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

MIT Licenced

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80