Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7f8bbb1

Browse files
upd: maxChars
1 parent f6b9aad commit 7f8bbb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/4_maxChars/index.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export const maxChar = (str: string): string => {
3030
}
3131

3232
for (let key in charsObj) {
33-
if (charsObj[key] > max) {// 2 > 1
34-
max = charsObj[key];// max = 2
35-
maxChar = key;// maxChar = 'l'
33+
if (charsObj[key] > max) {
34+
max = charsObj[key];
35+
maxChar = key;
3636
}
3737
}
3838

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /