4each 中文文档教程
4each
forEach but for everything
Install
$ npm install --save 4each
Usage
const each = require('4each')
// Array
each([1, 2, 3], (value, index) => {})
// Dom NodeList
each(document.querySelectorAll('div'), (element, index) => {})
// Plain Object
each({foo: 0, bar: 1}, (value, key) => {})
License
麻省理工学院 © EGOIST
4each
forEach but for everything
Install
$ npm install --save 4each
Usage
const each = require('4each')
// Array
each([1, 2, 3], (value, index) => {})
// Dom NodeList
each(document.querySelectorAll('div'), (element, index) => {})
// Plain Object
each({foo: 0, bar: 1}, (value, key) => {})
License
MIT © EGOIST