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