Guest User

Untitled

a guest
Jul 16th, 2019
84
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