# lodash.defaultto

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

Latest version **4.14.0** (published 2016-07-25) · MIT license · 0 weekly downloads

> **Better alternative:** See documentation for alternatives (https://github.com/AikidoSec/module-replacements/blob/main/docs/lodash-underscore)

## Install

```sh
npm install lodash.defaultto
pnpm add lodash.defaultto
yarn add lodash.defaultto
bun add lodash.defaultto
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.14.0 |
| Published | 2016-07-25 |
| First published | 2016-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 61278 |
| Author | John-David Dalton |
| Maintainers | jdalton |
| Keywords | lodash-modularized, defaultto |

## Links

- npm: https://www.npmjs.com/package/lodash.defaultto
- Repository: https://github.com/lodash/lodash
- Homepage: https://lodash.com/
- Issues: https://github.com/lodash/lodash/issues
- npm.io page: https://npm.io/package/lodash.defaultto

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 4.14.0 (latest) — 2016-07-25

## README

# lodash.defaultto v4.14.0

The [lodash](https://lodash.com/) method `_.defaultTo` exported as a [Node.js](https://nodejs.org/) module.

## Installation

Using npm:
```bash
$ {sudo -H} npm i -g npm
$ npm i --save lodash.defaultto
```

In Node.js:
```js
var defaultTo = require('lodash.defaultto');
```

See the [documentation](https://lodash.com/docs#defaultTo) or [package source](https://github.com/lodash/lodash/blob/4.14.0-npm-packages/lodash.defaultto) for more details.

---
_Source: https://npm.io/package/lodash.defaultto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
