const person = { name: 'John', age: 30 };
const { name, ...rest } = person;
console.log(rest);Ответ: { age: 30 }
JavaScript test | #JavaScript
JA JavaScript test @js_test · 9.7K subscribers const person = { name: 'John', age: 30 };
const { name, ...rest } = person;
console.log(rest);