Skip to content

Instantly share code, notes, and snippets.

@reggi
Created November 6, 2015 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save reggi/a11b1ad5c19d83a0fd9d to your computer and use it in GitHub Desktop.
Save reggi/a11b1ad5c19d83a0fd9d to your computer and use it in GitHub Desktop.
let companies = await Promise.map(companiesJSON, async (company) => {
console.log(`Processing ${company.name}`)
company.website = await getWebsite(company)
return company
}, {concurrency: 1})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment