JonathanJamesRasmussen / palindrome-checker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Palindrome Checker

Description

This algorithm is comprised of one JavaScript function, called palindrome that will return true or false based upon whether the string passed into it is a palindrome or not. A palindrome, in this case, is defined as a sequence of characters that is the same forwards as backwards.

This algorithm will strip out all spaces and special characters as well as convert the entire string to lowercase, so the user doensn't have to worry about ommitting certain characters.

Usage

This algorithm is covered under the MIT license, which allows for any usage and only requires that you include a copy of the license when using a copy or a substantial portion of the software. See the LICENSE file in the repository for more details.

Instructions

In order to use this algorithm, copy the javascript into whatever environment you'd like to use (make sure to include a copy of the license), and then run palindrome(<str>), where <str> is whatever you want to check for being a palindrome.

About

License:MIT License


Languages

Language:JavaScript 100.0%