# assign-all

> Object.assign for all objects in an array

Latest version **1.0.0** (published 2015-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install assign-all
pnpm add assign-all
yarn add assign-all
bun add assign-all
```

## 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 | 2015-08-28 |
| First published | 2015-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joakim Carlstein |
| Maintainers | joakimbeng |
| Keywords | assign, extend, merge, objects |

## Links

- npm: https://www.npmjs.com/package/assign-all
- Repository: https://github.com/joakimbeng/assign-all
- Homepage: https://github.com/joakimbeng/assign-all#readme
- Issues: https://github.com/joakimbeng/assign-all/issues
- npm.io page: https://npm.io/package/assign-all

## Dependencies (2)

- [arrify](https://npm.io/package/arrify.md) ^1.0.0
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.1

## Recent versions

- 1.0.0 (latest) — 2015-08-28

## README

# assign-all

[![NPM version][npm-image]][npm-url] [![js-xo-style][codestyle-image]][codestyle-url]

> Object.assign for all objects in an array

## Installation

Install `assign-all` using [npm](https://www.npmjs.com/):

```bash
npm install --save assign-all
```

## Usage

### Module usage

```javascript
var assignAll = require('assign-all');

assignAll([
  {foo: 1},
  {foo: 2},
  {bar: 'baz'}
]);
// {foo: 2, bar: 'baz'}
```

## API

### `assignAll(arr)`

| Name | Type | Description |
|------|------|-------------|
| arr | `Array` | The array of objects to merge |

Returns: `Object`, the merged object.

## License

MIT

[npm-url]: https://npmjs.org/package/assign-all
[npm-image]: https://badge.fury.io/js/assign-all.svg
[codestyle-url]: https://github.com/sindresorhus/xo
[codestyle-image]: https://img.shields.io/badge/code%20style-xo-brightgreen.svg?style=flat

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