Question: I have a div full with uncertain number of div's.
I would like to hide from, for example, div number 3 an on with css.

Is there a css rule for that?

Example:

```
<div class="elements-wrapper">
  <div>1</div>
  <div>2</div>
  <div>3</div>
  <div>4</div>
  <div>5</div>
  ...
</div>

```

Answer: 
The issue with your `fetchData` function, is that it does not wait for any of the subsequent fetches for each `item`.

To solve this, you have to map each of the results as a `Promise`, then wait for all these promises to finish by utilizing [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)

Your `fetchData` function might look something like this:

```js
  const fetchData = async (key) => {
    const data = await fetch(`https://pokeapi.co/api/v2/pokemon`)
      .then((res) => res.json())
      .then((data) => {
        return data;
      });

    // Wait for all subsequent fetches to finish
    const arr = await Promise.all(
      data.results.map((item) => fetch(item.url).then((res) => res.json()))
    );

    return arr;
  };

```
The solution proposed by @JAM but without any `.then()`. Error handling is omitted (You can use `catch()` or a `try/except` block):

```
const fetchData = async key => {
    const res = await fetch(`https://pokeapi.co/api/v2/pokemon`);
    const data = res.json();

    // Wait for all subsequent fetches to finish
    return Promise.all(
        data.results.map(async item => {
            const res = await fetch(item.url);
            return res.json();
        }
    );
};

```