Created
September 27, 2017 17:13
-
-
Save jikkujose/16ed90a8ca6bd0b1042f057073fef256 to your computer and use it in GitHub Desktop.
This file contains 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
export function repeat(object, number) { | |
let array = [] | |
for(let i = 0; i < number; i++) { | |
array.push(object) | |
} | |
return array | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment