Created
April 6, 2017 09:05
-
-
Save myfreeer/49a6e66831e6729722a3962da31a66e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const repeat = (str, times) => { | |
let result = ''; | |
while (times-- > 0) result += str; | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment