Skip to content

medooze/equals-ignore-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

equals-ignore-case

equalsIgnoreCase in javascript.

Installation

Install using npm:

npm install equals-ignore-casee

Example

const equalsIgnoreCase = require("equals-ignore-case")("en-US");
ignoreCase.equals('FOO', 'Foo'); // => true

API

factory(locale)

Returns a compare function for the provided locale.

compare.equalsIgnoreCase(string1, string2)

Returns true if the specified strings are equal in the specified locale ignoring case.

License

MIT

About

equalsIgnoreCase in javascript

Resources

License

Stars

Watchers

Forks

Packages

No packages published