結果 : how to update object in array javascript