Browse - Programming Tips - How can I delete an element from a javaScript array?

Date: 2017nov15
Language: javaScript

Q.  How can I delete an element from a javaScript array?

A.  To delete element 25 from array a

a.split(25,1);
Recall, array indexes are zero-based.
delete a[25]; // WRONG
Only sets it to undefined