Is Palindrome

    0

    0

    palindromestring

    Checks if the given string is a palindrome.

    Filename pattern: *.js

    const isPalindrome = (value) => {
      const chars = value.split('');
    
      return chars.every((char, index) => char === chars[chars.length - 1 - index]);
    };
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.