Use Filter Method to Extract Data from an Array

Tell us what’s happening:
I think I am trying to make this more complicated than it needs to be and obviously am used to scripting one liners. :-/ Anyway, I cannot figure out how to utilize filter properly I think. Also, what is the best way to see the current state of the array of objects? Lost as all get out at this point.

Your code so far

let filteredList = => ({"title":item["Title"],"rating":item["imdbRating"]})).filter((temp) => parseFloat(temp["imdbRating"]) >= 8.0);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.102 Safari/537.36 Vivaldi/2.6.1566.44.

Link to the challenge:

1 Like

I have solved this one, just took some messing about.

1 Like

very very VERY close. but when you map the function, you change imdbRating to rating - filter by that, and it will work fine.

Dang. Missed by that much. :wink:

Thanks for the reply. Honestly felt like I was never going to figure that one out.