indent = function(string, indents) {
indents = (new Array(indents)).join(' ')
return string.replace(/^/gm, function(){ return indents })
...
JavaScript indent string
indent = function(string, indents) {
indents = (new Array(indents)).join(' ')
return string.replace(/^/gm, function(){ return indents })
...
Cleaner way?