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
Just another repeat function:
function repeat(s, n) { var str = ''; for (var i = 0; i < n; i++) { str += s; } return str; }