Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const matchesSelectorFnName = R.find(
- R.propSatisfies(isNotNil, R.__, Element.prototype),
- ['matches', 'webkitMatchesSelector', 'msMatchesSelector'],
- );
- export const matchesCSS = R.curry((cssRule, node) => node[matchesSelectorFnName](cssRule));
Add Comment
Please, Sign In to add comment