Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isPalindrome

  • isPalindrome(str: string): boolean
  • Checks if the given string is a palindrome.

    example

    is.palindrome('foobaraboof'); // true is.palindrome('noon'); // true is.palindrome('foobar'); // false is.palindrome('bar'); // false

    Parameters

    • str: string

      The string to check.

    Returns boolean

    Whether the string is a palindrome.

Legend

  • Function

Generated using TypeDoc