README
JS-CLOSEST
Method to return closest (parent) matching element.
INSTALLATION
$ npm install --save @aneves/js-closest
USAGE
import Closest from '@aneves/js-closest';
Closest(el, '#id');
Method to return closest matching element.
<script type="module">
import anevesJsClosest from 'https://cdn.skypack.dev/@aneves/js-closest';
</script>
Method to return closest (parent) matching element.
$ npm install --save @aneves/js-closest
import Closest from '@aneves/js-closest';
Closest(el, '#id');