dom-ponyfills
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

dom-ponyfills

DOM ponyfills for closest, matches with d.ts.

Latest NPM release MIT License

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 );

Readme

Keywords

none

Package Sidebar

Install

npm i dom-ponyfills

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

7.89 kB

Total Files

24

Last publish

Collaborators

  • yomotsu