bloody-matches

0.0.1 • Public • Published

matches

browser support

matches selectors for every browser who supports querySelectorAll

install

$ npm install bloody-matches

require

var matches = require("bloody-matches")

api

matches(selector, element) > boolean

checks if element matches the given selector string.

selector as first argument has been chosen for simpler use of partial/curry.

example

var isAction = curry(matches, ".js-Action")

if(isAction(target)) {
  target.focus()
}

Readme

Keywords

none

Package Sidebar

Install

npm i bloody-matches

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • bloodyowl