I have this call that returned a response like this:
let pokemonTypes = pokemonData.map((pokemon, i) =>
{
let singleType = pokemon.type;
console.log(singleType);
}
);
Please note the arrays are COMPLETELY separate and do not have any parent array or object wrapper.
How can I grab these arrays and wrap them into one or even better concatenate all of their values into one array as in:
["fire", "grass", "water", "fire", "grass", "flying"]