結果 : how to update nested object value in javascript using spread operator