Codacy style changes for test files
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
const palindrome = str => {
|
||||
const s = str.toLowerCase().replace(/[\W_]/g, '');
|
||||
return s === [...s].reverse().join('');
|
||||
const s = str.toLowerCase().replace(/[\W_]/g, '');
|
||||
return s === [...s].reverse().join('');
|
||||
};
|
||||
|
||||
module.exports = palindrome;
|
||||
Reference in New Issue
Block a user