The delete operator sets an array element to the undefined value, but the element itself continues to
exist. To actually delete an element, so that all elements above it are shifted down to lower indexes, you
must use an array method. Array.shift() deletes the first element of an array, Array.pop() deletes the
last element, and Array.splice() deletes a contiguous range of elements from an array.
Deleting Array Elements
最新推荐文章于 2021-10-27 11:35:55 发布