Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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