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
If you think all those prototype definitions, array creations, and join operations are overkill, just use a single line code where you need it. String S repeating N times:
for (var i = 0, result = ''; i < N; i++) result += S;