Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
okbug committed May 19, 2022
1 parent cb16fbc commit 084e639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion records/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function repeat(str, n) {
let result = ''
if (n > 0) {
while(true) {
if (n & 1) retult += str
if (n & 1) result += str
n >>> 1
if (n <= 0) break
str += str
Expand Down

0 comments on commit 084e639

Please sign in to comment.