Consistent wording

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-01 20:50:57 +02:00
parent ef40a60a50
commit 0ba944aa66
18 changed files with 21 additions and 18 deletions

View File

@ -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 = ' ') =>