Suppose you want to delete from a dropdown form that a person's name & phone number.
You can use Array.splice to delete with Array.findIndex to locate the element position.
We found the element position "index" and delete 1 item using it.