Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Forked from reggi/example.js
Last active November 6, 2015 02:09
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 nolanlawson/b9cfe4998715d82b3c5e to your computer and use it in GitHub Desktop.
Save nolanlawson/b9cfe4998715d82b3c5e to your computer and use it in GitHub Desktop.
let companyWebsites = await* companiesJSON.map(company => getWebsite(company))
let companies = companyWebsites.map((website, i) => {
let company = companiesJSON[i]
company.website = website
return company
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment