I'm trying to save the answer to my request with axios in an array, but I'm not getting it, is something wrong?
colorList = axios.get(colors);
let codes = [];
for (let i = 0; i < colorList.data.data.colors.length; i++) {
codes[i].push(colorList.data.data.colors[i]);
}
console.log(codes);