Good, I need to get the variable "users" of this function and the for loop, I thought about using promises but I'm new with that and I can not find the round
var ids = [
"RtSG7NApoda9ycDRd7vm",
"TnT9XOXnkD1Ra5ROJERR",
"55fAOlOlejE3v0EUU4z9"
];
var users = [];
for(var i = 0; i < ids.length; i++){
getData(ids[i]).then(function (data) {
users.push(data);
});
}