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 = watchList.map((item) => ({"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:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/use-the-filter-method-to-extract-data-from-an-array