We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ed987 commit 4fd0e7aCopy full SHA for 4fd0e7a
valid-palindrome/nrudev.ts
@@ -0,0 +1,4 @@
1
+function isPalindrome(s: string): boolean {
2
+ const str = s.toLowerCase().replace(/[^a-zA-Z0-9]/g, "");
3
+ return str === str.split("").reverse().join("");
4
+}
0 commit comments