Deleting array elements in JavaScript - delete vs splice Deleting array elements in JavaScript - delete vs splice arrays arrays