Skip to content

stbaer/nodes-each

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Loop through a NodeList

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published