W72crm_web-master/node_modules/for-each
zhangwenzan c676fd5933 初始化crm前端代码 2025-05-27 11:25:53 +08:00
..
.github 初始化crm前端代码 2025-05-27 11:25:53 +08:00
test 初始化crm前端代码 2025-05-27 11:25:53 +08:00
.editorconfig 初始化crm前端代码 2025-05-27 11:25:53 +08:00
.eslintrc 初始化crm前端代码 2025-05-27 11:25:53 +08:00
.nycrc 初始化crm前端代码 2025-05-27 11:25:53 +08:00
CHANGELOG.md 初始化crm前端代码 2025-05-27 11:25:53 +08:00
LICENSE 初始化crm前端代码 2025-05-27 11:25:53 +08:00
README.md 初始化crm前端代码 2025-05-27 11:25:53 +08:00
index.d.ts 初始化crm前端代码 2025-05-27 11:25:53 +08:00
index.js 初始化crm前端代码 2025-05-27 11:25:53 +08:00
package.json 初始化crm前端代码 2025-05-27 11:25:53 +08:00
tsconfig.json 初始化crm前端代码 2025-05-27 11:25:53 +08:00

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

MIT Licenced