I have myPeople function, that within it calls a promise function like this
var myPeople = function(){
var go;
return new Promise (function(resolve){
User
.getPeople()
.then(function(allPeople){
go = allPeople;
//console.log(go)
resolve(go);
})
})
return go;
}
if I log my go within the block i get my objects, but i can not get it to return this object..