https://github.com/medooze/equals-ignore-case
equalsIgnoreCase in javascript
https://github.com/medooze/equals-ignore-case
Last synced: 4 months ago
JSON representation
equalsIgnoreCase in javascript
- Host: GitHub
- URL: https://github.com/medooze/equals-ignore-case
- Owner: medooze
- License: mit
- Created: 2023-04-10T12:32:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T12:57:54.000Z (about 2 years ago)
- Last Synced: 2025-02-14T15:10:53.941Z (4 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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