Created
December 23, 2015 11:17
-
-
Save mrm8488/425dc024ee9c870a9a77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise.all([User.findAllUsers(), User.findUserById(<id>)]).then(function(results) { | |
// results[0] contains the result of the first promise | |
// results[1] contains the result of the second promise | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment