Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map function

const ratings = watchList.map(item => ({
  title: item["Title"],
  rating: item["imdbRating"]
}));
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #map #function
ADD COMMENT
Topic
Name
2+4 =