Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Filter and map an array3

// Only change code below this line
const filteredList = watchList
  .filter(({ imdbRating }) => imdbRating >= 8.0)
  .map(({ Title: title, imdbRating: rating }) => ({ title, rating }));
// Only change code above this line

console.log(filteredList);
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Filter #map
ADD COMMENT
Topic
Name
7+8 =