# extend-object

> Underscore's extend method as a standalone Common JS module.

Latest version **1.0.0** (published 2014-04-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install extend-object
pnpm add extend-object
yarn add extend-object
bun add extend-object
```

## 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.0 |
| Published | 2014-04-10 |
| First published | 2014-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Henrik Joreteg |
| Maintainers | henrikjoreteg |
| Keywords | extend, object, underscore |

## Links

- npm: https://www.npmjs.com/package/extend-object
- Repository: https://github.com/henrikjoreteg/extend-object
- Issues: https://github.com/henrikjoreteg/extend-object/issues
- npm.io page: https://npm.io/package/extend-object

## 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.0.0 (latest) — 2014-04-10
- 0.1.0 — 2014-03-15

## README

# extend-object

[underscore's](http://underscorejs.org/) extend method adapted and extracted as a standalone CommonJS module.

Note this does *not* shim `Array.prototype.forEach` so if you're in <IE8 you'll need to polyfill it. But basically any other browser will work. 

## usage

```javascript
var extend = require('extend-object');

var obj = {hi: 'there'};

extend(obj, {hello: 'you'});

console.log(obj); // {hi: 'there', hello: 'you'}

// it extends the first object in place
console.log(obj === extend(obj, {})); // 'true'

// you can pass as many objects as you want
extend(obj, {something: 'else'}, {other: 'item'});

// if there are conflicting keys the last one wins
extend(obj, {something: 'ok'}, {something: 'newer'});
console.log(obj.something); // 'newer'

```

## install

```
npm install extend-object
```

## credits

All credit goes to Jeremy Ashkenas and the other underscore.js authors.

## license

MIT as per underscore.

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