This question already has an answer here:
- JavaScript Array Delete Elements 13 answers
I have an array like:
var abc = ["a","b","c"];
And the indexes are 0,1,2
Suppose, I want to delete the 2nd item "b" and I the indexes swipe!
Out put:
abc = ["a","c"]
and the indexes are 0,1
How can I achieve this?