1.0.7 • Published 2 years ago
element-closest-polyfill v1.0.7
element-closest-polyfill
A minimal polyfill for Element.closest() and Element.matches(), using MDN's implementation. Mostly meant for Microsoft IE9+.
Install
$ npm install --save element-closest-polyfillUsage
Pick your favorite:
require("element-closest-polyfill");import 'element-closest-polyfill';