dom-closest

For a given DOM element, find the first ancestor that matches a given CSS selector.. Latest version: 0.2.0, last published: 9 years ago. Start using dom-closest in your project by running `npm i dom-closest`. There are 400 other projects in the npm registry using dom-closest.