JS extendido excluyendo propiedad
//// EXCLUDE OBJECT PROPERTY USING THE spread OPERATOR ////
const firstObject = {id: 0, firstName: 'John', age: 77 };
// take every property except age:
const {age, ...secondObject} = firstObject;
console.log(firstObject);
console.log(secondObject);
// { id: 0, firstName: 'John', age: 77 }
// { id: 0, firstName: 'John' }
KostasX