What is the difference between using the delete operator on the array element as opposed to using the Array.splice method?
For example:
myArray = [\
If the desired element to delete is in the middle (say we want to delete 'c', which its index is 1), you can use:
var arr = ['a','b','c']; var indexToDelete = 1; var newArray = arr.slice(0,indexToDelete).combine(arr.slice(indexToDelete+1, arr.length))