Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/franciscop/insensitive
A library to make working with case-insensitive (including snake and similar) much easier
https://github.com/franciscop/insensitive
Last synced: 13 days ago
JSON representation
A library to make working with case-insensitive (including snake and similar) much easier
- Host: GitHub
- URL: https://github.com/franciscop/insensitive
- Owner: franciscop
- License: mit
- Created: 2018-11-14T09:38:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T10:39:54.000Z (almost 6 years ago)
- Last Synced: 2024-10-08T16:55:15.085Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# insensitive
Make sure anything you are working with becomes lowercase alphanumeric characters:
```js
import insensitive from 'insensitive';const obj = insensitive();
console.log(obj.hello); // undefined
obj.heL_Lo = 'world';
console.log(obj.hello); // 'world'
obj.hello = 'bye';
console.log(obj.hello); // 'bye'for (let key in obj) {
console.log(key); // 'hello'
}
Object.keys(obj); // ['hello']
```