Skip to content

Instantly share code, notes, and snippets.

@web20opensource
Created April 21, 2015 15:26
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 web20opensource/3397ba17c761ba81e39f to your computer and use it in GitHub Desktop.
Save web20opensource/3397ba17c761ba81e39f to your computer and use it in GitHub Desktop.
Learning RxJs
return movieLists.
concatMap(function(category){
debugger;
return category.videos.concatMap(function(video){
debugger;
return video.boxarts.filter(function(box){
//safe coercion
return box.width=='150'
}).map(function(box){
debugger;
return {
'id': video.id,
'title' : video.title,
'boxart' : box.url
}
})
})
})
@web20opensource
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment