Skip to content

Instantly share code, notes, and snippets.

@web20opensource
Created April 21, 2015 15:26
Show Gist options
  • Save web20opensource/3397ba17c761ba81e39f to your computer and use it in GitHub Desktop.
Save web20opensource/3397ba17c761ba81e39f to your computer and use it in GitHub Desktop.

Revisions

  1. web20opensource created this gist Apr 21, 2015.
    18 changes: 18 additions & 0 deletions ex14
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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
    }
    })
    })
    })