Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lete114/nullish
Resolve nullish coalescing operator (??) compatibility issues
https://github.com/lete114/nullish
Last synced: 14 days ago
JSON representation
Resolve nullish coalescing operator (??) compatibility issues
- Host: GitHub
- URL: https://github.com/lete114/nullish
- Owner: Lete114
- License: mit
- Created: 2022-07-18T02:09:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T01:13:36.000Z (over 2 years ago)
- Last Synced: 2024-09-16T04:44:35.533Z (about 2 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Nullish
Resolve nullish coalescing operator (??) compatibility issues
## Install
```bash
npm install nullish --save
```## Usage
See the test folder [test/index.js](test/index.js)
```js
import nullish from 'nullish'// null ?? 'value'
const obj = {}
nullish(obj.name, 'value')
```