Update Array Of Objects Using Spread Operator In Typescript