Consistent whitespace
This commit is contained in:
@ -8,7 +8,7 @@ Returns a string with whitespaces removed.
|
||||
- Use `String.prototype.replace()` with a regular expression to replace all occurrences of whitespace characters with an empty string.
|
||||
|
||||
```js
|
||||
const removeWhitespace = str => str.replace(/\s+/g,'');
|
||||
const removeWhitespace = str => str.replace(/\s+/g, '');
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user