# sc-merge

> Merge properties

Latest version **1.0.1** (published 2014-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install sc-merge
pnpm add sc-merge
yarn add sc-merge
bun add sc-merge
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2014-11-25 |
| First published | 2014-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Tsuji |
| Maintainers | sitecore, dervalp, davidtsuji |

## Links

- npm: https://www.npmjs.com/package/sc-merge
- Repository: https://github.com/SPEAKUI/sc-merge
- Issues: https://github.com/SPEAKUI/sc-merge/issues
- npm.io page: https://npm.io/package/sc-merge

## Dependencies (1)

- [component-type](https://npm.io/package/component-type.md) ^1.0.0

## Recent versions

- 1.0.1 (latest) — 2014-11-25
- 1.0.0 — 2014-11-19
- 0.0.3 — 2014-02-12
- 0.0.2 — 2014-01-20
- 0.0.1 — 2014-01-20

## README

# TOC
   - [merge](#merge)
<a name=""></a>
 
<a name="merge"></a>
# merge
should merge given objects.

```js
var o1 = {
	name: 'stan'
};
var o2 = {
	gender: 'male'
};
merge( o1, o2 ).should.eql( {
	name: 'stan',
	gender: 'male'
} );
```

should merge given objects deeply.

```js
var o1 = {
	name: 'stan',
	address: {
		street: 'smith st'
	}
};
var o2 = {
	gender: 'male',
	address: {
		suburb: 'smithville'
	}
};
merge( true, o1, o2 ).should.eql( {
	name: 'stan',
	gender: 'male',
	address: {
		street: 'smith st',
		suburb: 'smithville'
	}
} );
```

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