# lodash-es-merge-undefined

> a version of merge that does overwrite undefined values

Latest version **1.1.0** (published 2022-05-08) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install lodash-es-merge-undefined
pnpm add lodash-es-merge-undefined
yarn add lodash-es-merge-undefined
bun add lodash-es-merge-undefined
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-05-08 |
| First published | 2021-04-19 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Robin C. Ladiges |
| Maintainers | istador |
| Keywords | lodash, merge |

## Links

- npm: https://www.npmjs.com/package/lodash-es-merge-undefined
- Repository: https://github.com/Istador/lodash-es-merge-undefined
- Issues: https://github.com/Istador/lodash-es-merge-undefined/issues
- npm.io page: https://npm.io/package/lodash-es-merge-undefined

## Dependencies (1)

- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.21

## 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

- 1.1.0 (latest) — 2022-05-08
- 1.0.5 — 2022-05-08
- 1.0.4 — 2022-05-08
- 1.0.3 — 2022-04-25
- 1.0.2 — 2021-05-30
- 1.0.1 — 2021-04-19

## README

# lodash-es-merge-undefined [![npm][npm-image]][npm-url] [![test](https://github.com/Istador/lodash-es-merge-undefined/actions/workflows/test.yaml/badge.svg?branch=public)](https://github.com/Istador/lodash-es-merge-undefined/actions/workflows/test.yaml)

[npm-image]: https://img.shields.io/npm/v/lodash-es-merge-undefined.svg
[npm-url]: https://npmjs.org/package/lodash-es-merge-undefined

This is an alternative to the lodash's merge function, but it does overwrite values with `undefined`.

## Example
```js
import { merge as classic } from 'lodash-es'
import { merge as project } from 'lodash-es-merge-undefined'

const plain1 = { a: 1, b: 1 }
const plain2 = { a: 2, b: undefined }
console.log(classic(plain1, plain2))  //> { a: 2, b: 1 }
console.log(project(plain1, plain2))  //> { a: 2, b: undefined }

const deep1  = { sub: { a: 1, b: 1 } }
const deep2  = { sub: { a: 2, b: undefined } }
console.log(classic(deep1,  deep2 ))  //> { sub: { a: 2, b: 1 } }
console.log(project(deep1,  deep2 ))  //> { sub: { a: 2, b: undefined } }
```

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