Provide an easy way to create a new array, filled via a mapping function

GitHub - tc39/proposal-Number.range: A proposal for ECMAScript to add a built-in Number.range() is probably what you're looking for.

1 Like