Add indentString
This commit is contained in:
3
test/indentString/indentString.js
Normal file
3
test/indentString/indentString.js
Normal file
@ -0,0 +1,3 @@
|
||||
const indentString = (str, count, indent = ' ') =>
|
||||
str.replace(/^/mg, indent.repeat(count));
|
||||
module.exports = indentString;
|
||||
Reference in New Issue
Block a user