I do a data extraction with $ .getJSON () without problems, I get what I want from my database and then I work with .then but in this line
getKeys().then(data => data.map(key => keys.push(key)));
that I keep in my variable 'keys' which is an array but when I open it in the browser I see it by console and it comes out like this [], I click and it unfolds in this way
Array[0]
0:Object
1:Object
length:2
and the array remains as an object type, preventing me from mapping it, how can I make it mappable without having to do this.setState () in React? (with mappable I mean Array.prototype.map ())