Add prototype to descriptions
This commit is contained in:
@ -5,7 +5,7 @@ tags: string,beginner
|
||||
|
||||
Indents each line in the provided string.
|
||||
|
||||
- Use `String.replace` and a regular expression to add the character specified by `indent` `count` times at the start of each line.
|
||||
- Use `String.prototype.replace()` and a regular expression to add the character specified by `indent` `count` times at the start of each line.
|
||||
- Omit the third parameter, `indent`, to use a default indentation character of `' '`.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user