Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-22 20:24:30 +03:00
parent d35575373f
commit 5cb69e3c5c
58 changed files with 195 additions and 126 deletions

View File

@@ -5,7 +5,7 @@ tags: string,regexp,intermediate
Removes non-printable ASCII characters.
- Use a regular expression to remove non-printable ASCII characters.
- Use `String.prototype.replace()` with a regular expression to remove non-printable ASCII characters.
```js
const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, '');