SHARE
TWEET

Untitled

a guest Aug 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const composeEventHandlers = (...fns) => (event, ...args) =>
  2.   fns.some(fn => {
  3.     fn && fn(event, ...args);
  4.     return event.defaultPrevented;
  5.   });
  6.  
  7. export default composeEventHandlers;
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