Create and array of N size where prefilled with index Array.from(Array(N).keys()); Working off the previous, makes an onject from that array Array.from(new Array(24).keys()).reduce((acc, cur, i) => { acc[i] = cur return acc }, {})