Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
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');