@hansogj/find-js
v6.3.0
Published
Returning an iterable array of the result of querySelectorAll from root to selector
Downloads
6
Readme
find-js
Returns an iterable array of node-elements.
Usage
JS
// either
const find = require("@hansogj/find-js").default;
//or
<script src="../node_modules/@hansogj/find-js/dist/index.js"></script>
const find = window.find.default;
----
console.log(find('h2', window.document.body));
TS
import find from 'find-js';
console.log(find('h2', window.document.body));