find-js

Returning an iterable array of the result of querySelectorAll from root to selector

Usage no npm install needed!

<script type="module">
  import findJs from 'https://cdn.skypack.dev/find-js';
</script>

README

find-js

Returns an iterable array of node-elements.

Usage

JS

find("root", 'selector')

TS

import find from 'find-js';

console.log(find("h2", window.document.body))