Javascript – Use a mapping function to map one property to another object
I have an array of objects as per below. songs = [ { track_name: "name of track" , track_genres: ["chamber pop","indie pop"] }, { track_name: "name of track 2" , track_genres: ["dutch r&b","indie soul", "indie pop"] }, { track_name: "name…