Defaulto
A simple package to create default values where a variable is null or undefined
How to install
Run:
npm i -S defaulto
import { def } from 'defaulto';
Usage
let foo = undefined;
foo = def(foo).to('bar');
A simple package to create default values where a variable is null or undefined
Run:
npm i -S defaulto
import { def } from 'defaulto';
let foo = undefined;
foo = def(foo).to('bar');
npm i defaulto
16
1.0.17
ISC
2.98 kB
10