update snippets 78 - 96
This commit is contained in:
committed by
Agamemnon Zorbas
parent
d0a8c3b238
commit
a7fe8cb9d6
@ -10,5 +10,8 @@ const palindrome = str => {
|
||||
const s = str.toLowerCase().replace(/[\W_]/g,'');
|
||||
return s === s.split('').reverse().join('');
|
||||
}
|
||||
// palindrome('taco cat') -> true
|
||||
```
|
||||
```
|
||||
|
||||
```js
|
||||
palindrome('taco cat') -> true
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user