Skip to content

Instantly share code, notes, and snippets.

@gate5th
Created September 12, 2018 19:02
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 gate5th/4231831a50d6b037d6330ef3657bf5bc to your computer and use it in GitHub Desktop.
Save gate5th/4231831a50d6b037d6330ef3657bf5bc to your computer and use it in GitHub Desktop.
oldschoolshuffle
const promiseArrayOfTracksFromAlbum = shuffledAlbums.map(async (albumObject) => {
const response = await getSimpleAlbumTracks(albumObject.albumId, albumObject.albumName, albumObject.albumUri)
return response
})
const tracksByAlbum = await Promise.all(promiseArrayOfTracksFromAlbum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment