4each

0.0.1 • Public • Published

4each NPM version NPM downloads Build Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i 4each

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • kchan