JS functional programming for n items populate
This question already has an answer here:
Functional approach to basic array construction
One Solution collect form web for “JS functional programming for n items populate”
This solution seems like a good option:
const n = 10; const items = Array.from(Array(n), x => new Item());
Check more about the Array.from().