cachaito
6/10/2019 - 11:01 AM

Prefill array with values

// Internet Explorer doesn't work :(

let array = Array(5).fill('');
console.log(array); // outputs (5) ["", "", "", "", ""]