Created
June 16, 2018 13:59
-
-
Save dance2die/cb721d594a3c717569499f6239901710 to your computer and use it in GitHub Desktop.
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
const getItemURL = storyId => | |
`https://hacker-news.firebaseio.com/v0/item/${storyId}.json` | |
const getStories = async storyIds => { | |
const stories = storyIds.map(storyId => axios.get(getItemURL(storyId))) | |
return Promise.all(stories) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment