defaulto
TypeScript icon, indicating that this package has built-in type declarations

1.0.17 • Public • Published

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

Package Sidebar

Install

npm i defaulto

Weekly Downloads

16

Version

1.0.17

License

ISC

Unpacked Size

2.98 kB

Total Files

10

Last publish

Collaborators

  • tonksi