Skip to content

Instantly share code, notes, and snippets.

@jikkujose
Created September 27, 2017 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jikkujose/16ed90a8ca6bd0b1042f057073fef256 to your computer and use it in GitHub Desktop.
Save jikkujose/16ed90a8ca6bd0b1042f057073fef256 to your computer and use it in GitHub Desktop.
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