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 (parent) matching element.
$ npm install --save @aneves/js-closest
import Closest from '@aneves/js-closest';
Closest(el, '#id');
npm i @aneves/js-closest
6
1.0.2
MIT
3.39 kB
7