refactor(mostrepeatedchar):deixando o código mais apresentavel

This commit is contained in:
Gabriel Bernardini 2022-10-29 12:52:12 -03:00
parent 3c55eae119
commit 6b964afa76

View File

@ -8,5 +8,5 @@ export function mostUsedChar(text) {
const maxVal = Math.max(...Object.values(counts));
const num = Object.keys(counts).find((key) => counts[key] === maxVal);
return num;
return num;
}