The spread operator can also be used with objects to extend an original object whilst creating a new reference:
const baseEmployee = {company: 'acme', active: true};
const newEmployee = {...baseEmployee,...{ department:'deliveries',name:'Andrew'}};
console.log(newEmployee);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX