You can use findIndex to find the index in the array of the object and replace it as required: var item = {...} var items = [{id:2}, {id:2}, ...
確定! 回上一頁