hice un mapa con fetch y dividí el resultado, y empujé a otra variable, pero cuando intento acceder, da indefinido
const arrayPokemons = Array(5) .fill() .map((item, index) => { let hold = []; fetch(`https://pokeapi.co/api/v2/pokemon/${index + 1}`) .then((res) => res.json()) .then((data) => { hold.push(data.name.split("")); }); console.log(hold, " INTO THE MAP"); return hold; }); console.log(arrayPokemons, "ALL ARRAYS"); console.log(arrayPokemons[0], "SPECIFC ARRAY"); console.log(arrayPokemons[0][0], "SELECTED ARRAY, BUT RETURN undefined");