📜  空数组 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:32.488000             🧑  作者: Mango

代码示例6
let list = [1, 2, 3, 4];
function empty() {
    //empty your array
    list.length = 0;
}
empty();