結果 : js replace object in array if exists