Incorrect array deletion
Preventative measuresDo not use the delete keyword as means to remove some element from an array. Instead, use the array.pop(<index>) function, which just like in javascript, removes the element at the specified index.
<index>) function, which just like in javascript, removes the element at the specified index.Last updated