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 50477e4 commit 8c06a9aCopy full SHA for 8c06a9a
palindrome2.js
@@ -0,0 +1,5 @@
1
+function palindrome(str){
2
+ return str.split('').every((char, i) => {
3
+ return char === str[str.length - i - 1];
4
+ });
5
+}
0 commit comments