I make a request to the server to get an array of objects:
var eq = new Scorocode.Query("equipment");
eq.find().then((found) => {
let equipment = found.result;
console.info(equipment);
});
The console shows that the object was successfully received:
How can I get an array outside of this query to work with array further? I tried to access through the declaration of a global variable, but it did not help, I always get 'undefined'.