const arr = [1, 2, 3]
console.log(Math.max(...arr)); // 3
const arr1 = [1, 2];
const arr2 = [3, 4];
conssole.log([...arr1, ...arr2]); // [1, 2, 3, 4]
const John = {
name: 'John',
age: 30,
job: 'designer',
};
const {name, ...rest} = John;
console.log(name); // John
console.log(rest); // {age: 30, job: 'designer'}
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Spread_syntax
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Functions/rest_parameters