Filter and Map Method to Extract Data from an Array

rating: item["imdbRating"]}))
console.log(mappedOutList)
const filteredList = mappedOutList.filter(item => item['imdbRating'] >= 8.0);

please what is wrong with this code? see above the code

If you post the link to the challenge, it will be easier to get help.

see above link

  1. You can filter ‘watchList’ directly, without needing to introduce a ‘mappedOutList’
  2. You need to chain a map method to your filter method
thisArray.map(item=>item)
thisArray.map(item=>{return {object here}})

The first line returns an array with identical objects
The second line returns an array with possibly different objects

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.