is-palindrome-es6

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-palindrome-es6

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

2.4 kB

Total Files

3

Last publish

Collaborators

  • andyjames