1.0.1 • Published 4 years ago

case-insensitive-compare v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

case-insensitive-compare

Travis Build Status Coverage Status Dependencies Greenkeeper badge

Case insensitive string comparison.

Install

npm install case-insensitive-compare

Usage

const compare = require("case-insensitive-compare");

compare("test", "test"); // true
compare("test", "Test"); // true

Parameters

  • a {String} The first string to compare.
  • b {String} The second string to compare.

Returns

  • {Boolean} The result of comparing the two strings, ignoring case.