나머지 연산자
function iTakeItAll(first, second, ...allOthers) {
console.log(allOthers)
}
iTakeItAll('foo', 'bar') // []
iTakeItAll('foo', 'bar', 'bas', 'qux') // ['bas','qux']Last updated
function iTakeItAll(first, second, ...allOthers) {
console.log(allOthers)
}
iTakeItAll('foo', 'bar') // []
iTakeItAll('foo', 'bar', 'bas', 'qux') // ['bas','qux']Last updated