Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Prosen-Ghosh/is-palindrome-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-palindrome-number

Determines if a number is a palindrome.

npm license github-issues

travis-status stars forks

Features

Install

npm install --save is-palindrome-number

Usage

const isNumberPalindrome = require('is-palindrome-number');

isNumberPalindrome(123);
//=> false

isNumberPalindrome(12321);
//=> true

isNumberPalindrome('12321');
//=> TypeError: expects number got string

isNumberPalindrome(); // without parameter this function will throw a type error
//=> TypeError: expects number got undefined

Author

Prosen Ghosh prosenghosh25@gmail.com (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)

License

  • MIT

Releases

No releases published

Packages

No packages published