Skip to content

Instantly share code, notes, and snippets.

@ithinkihaveacat
Created October 13, 2015 15:38
Show Gist options
  • Select an option

  • Save ithinkihaveacat/48e8d6737e9531b326f9 to your computer and use it in GitHub Desktop.

Select an option

Save ithinkihaveacat/48e8d6737e9531b326f9 to your computer and use it in GitHub Desktop.
Promise.all([1, 2]).then(Object.apply.bind((a, b) => { console.log(`a = ${a}, b = ${b}`) }, null))
// -> a = 1, b = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment