Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const add3 = (x, y, z) => x + y + z
- const boundAll = add3.bind(null, 10, 10, 10)
- console.log(boundAll(1)) // 30
- console.log(boundAll(1, 2)) // 30
- console.log(boundAll(1, 2, 3)) // 30
- console.log(boundAll(1, 2, 3, 4)) // 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement