Guest User

Untitled

a guest
Mar 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. const compose = (f1, f2) => arg => f1(f2(arg));
  2.  
  3. const add5ThenMultiplyBy2 = compose(double, add5);
  4. add5ThenMultiplyBy2(1) // 12
Add Comment
Please, Sign In to add comment