JS 怎样清空一个数组?
提到 JS 的数组,我们很快就会想到数组的各种 API,有用作插入删除的 push/pop/shift ,有用作高阶变换的 map/reduce/filter ,还有其他诸如 sort, concat, slice, indexOf 等等这……
提到 JS 的数组,我们很快就会想到数组的各种 API,有用作插入删除的 push/pop/shift ,有用作高阶变换的 map/reduce/filter ,还有其他诸如 sort, concat, slice, indexOf 等等这……