function combine(a, b = 10, ...rest) {
return JSON.stringify([a, b, rest]);
}
const inputs = [1, undefined, 3, 4, 5];
console.log(combine(...inputs)); Post #3436
2.17K
CHALLENGE
- ❤ 5
- 👍 3