結果 : how to replace an object in an array javascript