README
nested-child
About âšī¸
Find the most nested element
How to Install đž
First, install the library in your project by npm:
$ npm install nested-child
Or Yarn:
$ yarn add nested-child
Getting 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):
Jakub Biesiada đģ â ī¸ đ |
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