So, I have an array, and I want to delete a specific element, through .find()
. How should I use it for such purpose?
I know that it should have a condition, let's say
if(element === selectedItem)
{
Array.splice(index,1);
}
but i do not know how to include this into .find()
.