Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const add = (a, b, ...rest) => {
- console.log(rest); // [3, 4, 5]
- console.log(...rest) // 3, 4, 5
- };
- add(1, 2, 3, 4, 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement