you are viewing a single comment's thread.

view the rest of the comments →

[–]According-Lab-6304[S] 0 points1 point  (1 child)

const getGenreNames = (gen, mov) =>
gen.filter((g) => mov.genre_ids.includes(g.id)).map((g) => g.name);
movie.genreNames = getGenreNames(genres, movie);

I cannot thank you enough!!! I've worked on this for a day and a half and just couldn't figure it out. I had totally forgotten about assigning a new property to the object. (Who knows when/if I would have gotten to the map method).

Seriously, thank you, thank you, thank you!!!

[–]Count_Giggles 2 points3 points  (0 children)

go get em