Skip to content

Instantly share code, notes, and snippets.

@pionize

pionize/.js Secret

Created April 27, 2017 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pionize/25b9e2702dd2ff24367dfab7b8b6e653 to your computer and use it in GitHub Desktop.
Save pionize/25b9e2702dd2ff24367dfab7b8b6e653 to your computer and use it in GitHub Desktop.
var user;
getUserByName('andrew').then(function (result) {
user = result;
return getUserAccountById(user.id);
}).then(function (userAccount) {
// now, I have both the "user" and the "userAccount"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment