4 lines
126 B
JavaScript
4 lines
126 B
JavaScript
const indentString = (str, count, indent = ' ') =>
|
|
str.replace(/^/mg, indent.repeat(count));
|
|
module.exports = indentString;
|