dom-ponyfills
v0.1.1
Published
DOM [ponyfills](https://github.com/sindresorhus/ponyfill) for closest, matches with d.ts.
Downloads
6
Readme
dom-ponyfills
DOM ponyfills for closest, matches with d.ts.
Usage
with NPM
$ npm install --save dom-ponyfills
import { closest, matches } from 'dom-ponyfills';
const matched: boolean = matches( el: Element, selector: string );
const element: Element | null = closest( el: Element, selector: string );