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
// {"id": 654356453,"title": "Bad Boys","boxart":"http://cdn-0.nflximg.com/images/2891/BadBoys150.jpg" },
// {"id": 70111470,"title": "Die Hard","boxart":"http://cdn-0.nflximg.com/images/2891/DieHard150.jpg" }
// ];
-
- return movieLists.
- map(function(movieList) {
- return movieList.videos.
- map(function(video) {
- return video.boxarts.
- filter(function(boxart) {
- return boxart.width === 150;
- }).
- map(function(boxart) {
- return {id: video.id, title: video.title, boxart: boxart.url};
- });
- }).
- concatAll();
- }).
- concatAll();
+
+ return movieLists.map(movieList =>
+ movieList.videos.map(video =>
+ video.boxarts.filter(boxart => boxart.width === 150).map(boxart =>
+ ({
+ 'id': video.id,
+ 'title': video.title,
+ 'boxart': boxart.url
+ })
+ )
+ ).concatAll()
+ ).concatAll();
}