@jeremiah_tenbrink/for-every-node
v1.0.6
Published
Function that will call a callback for every child node. Uses a queue, not recursion.
Downloads
8
Readme
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
👤 Jeremiah Tenbrink
- 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 ⭐️ if this project helped you!
📝 License
Copyright © 2020 Jeremiah Tenbrink. This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator