1.0.0 • Published 7 years ago

ispalindrome v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

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