A ES6 Generator that traverses the child nodes within the given `Node`
npm install node-iteratorA ES6 Generator that traverses the child nodes within the given Node


`` bash`
$ npm install node-iterator
` js
import NodeIterator from 'node-iterator';
// manual iteration
let node;
for (node of NodeIterator(document.body)) {
console.log(node.nodeName);
}
// cast to an Array
let nodes = [...NodeIterator(document.body)];
console.log(nodes.length);
``
MIT