Update Array Object With Spread Operator In Javascript For Array