@aneves/js-closest

Method to return closest matching element.

Usage no npm install needed!

<script type="module">
  import anevesJsClosest from 'https://cdn.skypack.dev/@aneves/js-closest';
</script>

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');