index.js
const list = [1, , 3];
Array.apply(null, list); // [1, undefined, 3]
[...list]; // [1, undefined, 3]
index.js
const list = [1, , 3];
Array.apply(null, list); // [1, undefined, 3]
[...list]; // [1, undefined, 3]
相关文章: