Polyfill for Element.prototype.matches
$ npm install @f/matches-selector
var matchesSelector = require('@f/matches-selector')
if (matchesSelector(':hover"'))
node
- DOM Elementselector
- Selector. E.g.:hover
,.modal
.
Returns: Boolean indicating whether or not node
matched selector
.
MIT