Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const add3 = (x, y, z) => x + y + z
  2. const boundAll = add3.bind(null, 10, 10, 10)
  3.  
  4. console.log(boundAll(1)) // 30
  5. console.log(boundAll(1, 2)) // 30
  6. console.log(boundAll(1, 2, 3)) // 30
  7. console.log(boundAll(1, 2, 3, 4)) // 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement