SHARE
TWEET

Untitled

a guest Jul 16th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const compose = (...funcs)=>{
  2.    const fn = funcs.reduce((acc, element) => {
  3.     acc = element(acc);
  4.     console.log(acc);
  5.    
  6.   },[]);
  7.  
  8.   return fn;
  9. };
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