Created
March 28, 2015 08:53
-
-
Save ryardley/f1df91251c1caf03464b to your computer and use it in GitHub Desktop.
fat arrow of perplexity
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(this.routes.filter(route => !!route).map(route => new Promise((resolve, reject) => this.context.executeAction(route.data, state, () => resolve())).then(() => callback(null)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment