Consistent wording
This commit is contained in:
@ -6,7 +6,7 @@ tags: string,beginner
|
||||
Indents each line in the provided string.
|
||||
|
||||
- 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 `' '`.
|
||||
- Omit the third argument, `indent`, to use a default indentation character of `' '`.
|
||||
|
||||
```js
|
||||
const indentString = (str, count, indent = ' ') =>
|
||||
|
||||
Reference in New Issue
Block a user