Leo’s TILs
// 方法一 Array.apply(null, Array(7)) // 方法二 Array(10).fill(0) // 方法三 Array.from({length: 10}, (v, i) => i) // 方法四 [...Array(10).map((v, i) => i)]
Created 2020-07-15T22:53:22+08:00 · Edit