lodash.defaultto

The lodash method `_.defaultTo` exported as a module.

Usage no npm install needed!

<script type="module">
  import lodashDefaultto from 'https://cdn.skypack.dev/lodash.defaultto';
</script>

README

lodash.defaultto v4.14.0

The lodash method _.defaultTo exported as a Node.js module.

Installation

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.defaultto

In Node.js:

var defaultTo = require('lodash.defaultto');

See the documentation or package source for more details.