Skip to content

Instantly share code, notes, and snippets.

@ryardley
Created March 28, 2015 08:53
Show Gist options
  • Save ryardley/f1df91251c1caf03464b to your computer and use it in GitHub Desktop.
Save ryardley/f1df91251c1caf03464b to your computer and use it in GitHub Desktop.
fat arrow of perplexity
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