nodes-each
v1.0.3
Published
Loop through nodelist / the result of querySelectorAll
Downloads
19
Maintainers
Readme
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.