blob: e63037cca45bdd2a5a7eadad9eb49e2a1718a26a [file] [log] [blame] [edit]
export function repeat(x, timesToRepeat){
if (arguments.length === 1){
return _timesToRepeat => repeat(x, _timesToRepeat)
}
return Array(timesToRepeat).fill(x)
}