nodes-each

1.0.3 • Public • Published

nodes-each

Loop through a NodeList (e.g. the result of querySelectorAll).

Install

npm i --save nodes-each

nodesEach (NodeList, callback[, scope])

var nodesEach = require('nodes-each');

nodesEach( document.querySelectorAll('.someSelector'), function (idx, el) {
      console.log('index: ' + idx, 'element: ' + el);
   }, this);

License

MIT, see LICENSE.md for details.

Package Sidebar

Install

npm i nodes-each

Weekly Downloads

6

Version

1.0.3

License

MIT

Last publish

Collaborators

  • stbaer