Build and Fill an Array from a specified length

JS
S
JavaScript

Easy way to build and flood an array with ES6

1const totalSlotsPerDay = new Array(45).fill({});

Created on 8/30/2019