0.0.0 • Published 5 years ago
nested-child v0.0.0
nested-child
About ℹ️
Find the most nested element
How to Install 💾
First, install the library in your project by npm:
$ npm install nested-childOr Yarn:
$ yarn add nested-childGetting Started 🏁
Connect libary to project:
import { nestedChild } from 'nested-child';Next use library:
nestedChild(document.getElementById('wrapper'));Example
<div id="container">
<div>
<div>
<p>Hello World!</p>
</div>
</div>
</div>const {} = nestedChild(document.getElementById('container'));
console.log(child.innerHTML); // Hello World!Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License 🔱
This project is licensed under the MIT License © 2020-present Jakub Biesiada
0.0.0
5 years ago