find receives a callback as an argument that is called for every item in the array until a true is returned. When the callback returns true, find know that you found what you want, so it returns the artist object. If true is never returned, then find will return undefined.
A more concise way to write the same thing:
function findSexyArtist(artists) {
return artists.find(artist => artist.isSexy);
}
Also, I’m not sure if you really want only the name of the artist to be returned or the object itself. The solutions above will return the object itself, if you want the name, then it should be simple:
function findSexyArtist(artists) {
const artist = artists.find(artist => artist.isSexy);
return artist ? artist.name : '';
}