結果 : find and replace an object in an array javascript