📜  typescript clear array - TypeScript 代码示例

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

代码示例4
const array: Array = new Array();

array.push(1);
array.push(2);
array.push(3);
array.push(4);
// has now 4 elemnts

array = [];

// has now 0 elements