Examples
Array.from({length: 10},(_v, i) => {});
Array(10).forEach((_v, j) => {});
Object.assign(Array(),{ length: 10 });
Object.assign([],{ length: 10 });
const myArray = [1,2,3,5]
myArray.length = 0; // Ultra fast clear array
Note Array.from is the winner as the most concise api with and without fill
Array.from({length: 10},(_v, i) => {});
Array.from({length: 10});