Skip to content

Instantly share code, notes, and snippets.

@terakilobyte
Created April 18, 2015 18:59
Show Gist options
  • Save terakilobyte/be58bd344ac3d8a61616 to your computer and use it in GitHub Desktop.
Save terakilobyte/be58bd344ac3d8a61616 to your computer and use it in GitHub Desktop.
return movieLists.map(genres =>
genres.videos.map(video =>
video.boxarts.filter(boxart =>
boxart.width === 150 && boxart.height === 200
).map(boxart => {
return ({
id: video.id,
title: video.title,
boxart: boxart.url
})
})
).concatAll()
).concatAll()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment