📜  删除数组元素 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:32.080000             🧑  作者: Mango

代码示例6
const arr = [7, 8, 5, 9];
delete arr[3];
console.log(arr); //[7, 8, 5, empty] 
delete operator removes only an element; Not the space allocated to it.