Guest User

Untitled

a guest
Dec 13th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. const compose = (...args) => (...currentArgs) => {
  2. let result = args[0](...currentArgs)
  3. for (let i = 0; i < currentArgs.length; i++) {
  4. result = args[i + 1](result)
  5. }
  6. return result
  7. }
Add Comment
Please, Sign In to add comment