Determines if a number is a palindrome.
npm install --save is-palindrome-number
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 undefinedProsen Ghosh prosenghosh25@gmail.com (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)
- MIT