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

**URL:** <https://es.discourse.group/t/provide-an-easy-way-to-create-a-new-array-filled-via-a-mapping-function/1056>\
**Category:** 💡 Ideas\
**Tags:** proposal\
**Created:** [October 25, 2021, 11:54am UTC](https://es.discourse.group/t/provide-an-easy-way-to-create-a-new-array-filled-via-a-mapping-function/1056 "2021-10-25T11:54:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![claudiameadows](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/claudiameadows/32/126_2.png) [@claudiameadows](https://es.discourse.group/u/claudiameadows)\
**Post date:** [October 25, 2021, 12:12pm UTC](https://es.discourse.group/t/provide-an-easy-way-to-create-a-new-array-filled-via-a-mapping-function/1056/4 "2021-10-25T12:12:27Z")

</div>

You could still do `Number.range(0, count).map(i => ...).toArray()` when combined with [GitHub - tc39/proposal-iterator-helpers: Methods for working with iterators in ECMAScript](https://github.com/tc39/proposal-iterator-helpers). Is that sufficient?

---

_[View the full topic](https://es.discourse.group/t/provide-an-easy-way-to-create-a-new-array-filled-via-a-mapping-function/1056)._
