What is the difference between using the delete operator on the array element as opposed to using the Array.splice method?
For example:
myArray = [\
Currently there are two ways to do this
using splice()
arrayObject.splice(index, 1);
using delete
delete arrayObject[index];
But I always suggest to use splice for array objects and delete for object attributes because delete does not update array length.