1:splice
arr.splice(arr.findIndex(item => item.id === id), 1)
2:filter
arr = arr.filter((num,index) => { return index !== val })
1:splice
arr.splice(arr.findIndex(item => item.id === id), 1)
2:filter
arr = arr.filter((num,index) => { return index !== val })