@wazabix/palindrome

JS library to know if a string is a palindrome


Keywords
palindrome, string, number
License
MIT
Install
npm install @wazabix/palindrome@1.1.2

Documentation

palindrome

Discord npm NPM npm

JS library to know if a string is a palindrome

Install

$ npm i @wazabix/palindrome

Usage

const { isPalindrome } = require ( '@wazabix/palindrome' );

console.log ( isPalindrome ( 1001001 ) ); // => true

console.log ( isPalindrome ( 'kayak' ) ); // => true

console.log ( isPalindrome ( 'forest' ) ); // => false