daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 50 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. const matchesSelectorFnName = R.find(
  2.   R.propSatisfies(isNotNil, R.__, Element.prototype),
  3.   ['matches', 'webkitMatchesSelector', 'msMatchesSelector'],
  4. );
  5.  
  6. export const matchesCSS = R.curry((cssRule, node) => node[matchesSelectorFnName](cssRule));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top