1.0.2 • Published 6 years ago
@aneves/js-closest v1.0.2
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');