Deprecate utility tag
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: indentString
|
||||
tags: string,utility,beginner
|
||||
tags: string,beginner
|
||||
---
|
||||
|
||||
Indents each line in the provided string.
|
||||
@ -15,4 +15,4 @@ const indentString = (str, count, indent = ' ') => str.replace(/^/gm, indent.rep
|
||||
```js
|
||||
indentString('Lorem\nIpsum', 2); // ' Lorem\n Ipsum'
|
||||
indentString('Lorem\nIpsum', 2, '_'); // '__Lorem\n__Ipsum'
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user