palindrome-antier
v1.0.3
Published
Palindrome checker
Downloads
9
Readme
Palindrome Checker
This JavaScript package provides a simple and efficient way to check if a given string is a palindrome. A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward (ignoring spaces, punctuation, and capitalization).
Installation
npm install palindrome-checker
# or
yarn add palindrome-checker
Usage
import palindrome from "palindrome-antier";
console.log(palindrome("str"));
Palindrome(str)
str
(string): The input string to be checked for palindrome.
Returns
true
if the input string is a palindrome.false
if the input string is not a palindrome.