Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 18:34:30 +02:00
parent 1c0190b1ad
commit ae1828e42f
6 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@ Checks if the given string is a palindrome.
- Normalize the string to `String.prototype.toLowerCase()` and use `String.prototype.replace()` to remove non-alphanumeric characters from it.
- Use the spread operator (`...`) to split the normalized string into individual characters.
- Use `Array.prototype.reverse()`, `String.prototype.join('')` and compare the result to the normalized string.
- Use `Array.prototype.reverse()`, `String.prototype.join()` and compare the result to the normalized string.
```js
const palindrome = str => {