From 2a4e84f549b59ac7c4993cc8ab8498ebdc980949 Mon Sep 17 00:00:00 2001 From: Writech Date: Sun, 6 Dec 2015 18:01:21 +0200 Subject: [PATCH] Update Exercise 12 answer to ES6 format --- index.html | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index a8ce3df..8d11de3 100644 --- a/index.html +++ b/index.html @@ -1472,22 +1472,18 @@

Exercise 12: Retrieve id, title, and a 150x200 box art url for every video + movieList.videos.map(video => + video.boxarts.filter(boxart => boxart.width === 150).map(boxart => + ({ + 'id': video.id, + 'title': video.title, + 'boxart': boxart.url + }) + ) + ).concatAll() + ).concatAll(); }