No Array.prototype.remove (a la Array.prototype.filter) 😿
You have to use splice based on an index instead. Would be much simpler to provide an item to be removed. The equivalent of arr.splice(arr.indexOf(item), 1).
https://stackoverflow.com/questions/5767325/how-can-i-remove-a-specific-item-from-an-array
Leave a Reply