What is the best or most concise method for returning a string repeated an arbitrary amount of times?
The following is my best shot so far:
function
This may be the smallest recursive one:-
String.prototype.repeat = function(n,s) { s = s || "" if(n>0) { s += this s = this.repeat(--n,s) } return s}