Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-22 20:24:04 +03:00
parent aedcded750
commit d35575373f
41 changed files with 148 additions and 88 deletions

View File

@ -9,7 +9,8 @@ Removes accents from strings.
- Use `String.prototype.replace()` to replace diacritical marks in the given Unicode range by empty strings.
```js
const removeAccents = str => str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
const removeAccents = str =>
str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
```
```js