Skip to content

Commit

Permalink
Update getArtistGenreDomain.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gamboaalejandro authored Jan 18, 2024
1 parent a398238 commit 1c1d067
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class GetArtistGenre {

const mostCommonGenre = genres.reduce((acc, genre) => {
acc[genre] = (acc[genre] || 0) + 1;
return acc;
return acc;
}, {});
const genre: string = Object.keys(mostCommonGenre).reduce((a, b) =>
mostCommonGenre[a] > mostCommonGenre[b] ? a : b,
Expand Down

0 comments on commit 1c1d067

Please sign in to comment.