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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    4
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i nodes-each

Weekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • stbaer