Say I have a array
var arrayName = [];
with three items
arrayName = ['hi', 'hey', 'hello'];
how do I delete the item 'hey' from the array?
Say I have a array
var arrayName = [];
with three items
arrayName = ['hi', 'hey', 'hello'];
how do I delete the item 'hey' from the array?
var hey = arrayName.splice(1,1);
EDIT: If you would prefer to get the index of a particular value, you can use:
arrayName.indexOf("hey");