Merge branch 'bugfix/mostRepeatedChar'

This commit is contained in:
Marcela Mathias 2022-11-02 21:44:09 -03:00
commit ff6187b0df

View File

@ -3,7 +3,7 @@ export function mostUsedChar(text) {
letter = ""; letter = "";
text.split("").forEach(function (char) { text.split("").forEach(function (char) {
if (text.split(char).length > count) { if (text.split(char).length > count) {
max = text.split(char).length; count = text.split(char).length;
letter = char; letter = char;
} }
}); });