ispalindrome
v1.0.0
Published
A lightweight function that extends String to check if a string is a Palindrome.
Downloads
11
Maintainers
Readme
isPalindrome
A very lightweight(1 line of code) function that adds a function to the string's prototype.
Installation
$ npm install isPalindrome --save
Usage
console.log('Are we not pure? “No sir!” Panama’s moody Noriega brags. “It is garbage!” Irony dooms a man; a prisoner up to new era.'.isPalindrome());
//True
console.log('What am I doing?'.isPalindrome());
//False