An Element matches polyfill.
- CDN, as global
elementMatches
utility, via https://unpkg.com/@ungap/element-matches - ESM via
import matches from '@ungap/element-matches'
- CJS via
const matches = require('@ungap/element-matches')
Compatible with every JS engine with a DOM environment.