結果 : how to replace an object in array javascript