Skip to content

Commit

Permalink
fix: extractMostOcurring was always returning the first element
Browse files Browse the repository at this point in the history
The extra `return maxEl` shouldn't be there
  • Loading branch information
RomRider authored and pkissling committed Aug 4, 2023
1 parent 71c050f commit 917c2dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function extractMostOccuring<T extends string | number | symbol>(elements
maxCount = modeMap[el];
}
}
return maxEl;
}
return maxEl;
}
}

0 comments on commit 917c2dc

Please sign in to comment.