Iteratively walk any DOM node.
# npm
npm install --save-dev @elonehoo/dom-traversal
# yarn
yarn add --dev @elonehoo/dom-traversal
# pnpm
pnpm install --save-dev @elonehoo/dom-traversal
import iterativelyWalk from '@elonehoo/dom-traversal'
iterativelyWalk(document.body.childNodes,function (node:Node){
console.log("node", node)
})
MIT License © 2022-PRESENT Elone Hoo