matches selectors for every browser who supports querySelectorAll
$ npm install bloody-matches
var matches = require("bloody-matches")
checks if element
matches the given selector
string.
selector as first argument has been chosen for simpler use of partial/curry.
var isAction = curry(matches, ".js-Action")
if(isAction(target)) {
target.focus()
}