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 you have small array you can use filter:
filter
myArray = ['a', 'b', 'c', 'd']; myArray = myArray.filter(x => x !== 'b');