Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var len = result.apps.length;
- var cnt = 0;
- var apps = [];
- result.apps.forEach(function (appID) {
- Apps.get(appID, function(err, result){
- apps.push(result._properties);
- cnt++;
- if(cnt==len){
- callback(null, apps);
- }
- });
- });
Add Comment
Please, Sign In to add comment