ispalindrome

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i ispalindrome

Weekly Downloads

3

Version

1.0.0

License

ISC

Last publish

Collaborators

  • okei