What is the difference between using the delete operator on the array element as opposed to using the Array.splice method?
For example:
myArray = [\
you can use something like this
var my_array = [1,2,3,4,5,6]; delete my_array[4]; console.log(my_array.filter(function(a){return typeof a !== 'undefined';})); // [1,2,3,4,6]