Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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')
```