I have an array that looks like this: var y = [1, 2, 3];
I would like to remove 2
from array y
.
How can I remove a particular value from an array using jQuery? I have tried pop()
but that always removes the last element.
I have an array that looks like this: var y = [1, 2, 3];
I would like to remove 2
from array y
.
How can I remove a particular value from an array using jQuery? I have tried pop()
but that always removes the last element.