👋
Welcome to @jeremiah_tenbrink/for-every-node
Function that will call a callback for every child node. Uses a queue , not recursion.
Install
With Npm
npm install @jeremiah_tenbrink/for-every-node
With Yarn
yarn add @jeremiah_tenbrink/for-every-node
Usage
import {callForEveryNode} from "@jeremiah_tenbrink/for-every-node";
callForEveryNode(htmlElementWithChildNodes, (el => {
console.log(el)
}))
Author
- Portfolio: http://tenbrink.dev
- GitHub: @jeremiahtenbrink
- LinkedIn: @jeremiahtenbrink
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a
📝 License
Copyright © 2020 Jeremiah Tenbrink.
This project is MIT licensed.
This README was generated with