is-palindrome-es6
v1.0.3
Published
Returns true if the given object as a string is a palindrome, else false.
Downloads
3
Readme
is-palindrome-es6
What is a palindrome?
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar. There are also numeric palindromes, including date/time stamps using short digits 11/11/11 11:11 and long digits 02/02/2020. Sentence-length palindromes ignore capitalization, punctuation, and word boundaries.
What is this package?
This package provides a function to which you may pass any value and it will return true if the value is a palindrome, otherwise false.
Usage
Using WebPack:
import { isPalindrome } from "is-palindrome-es6";
isPalindrome("racecar"); // true
Using native ES6 modules:
import { isPalindrome } from "./node_modules/is-palindrome-es6/index.js";
isPalindrome("racecar"); // true
Customer feedback
I can't believe I've spent 18 years, 11 months, 3 days, 22 hours and 45 minutes without this package in my life!
Christa Bridges