assign-all

1.0.0 • Public • Published

assign-all

NPM version js-xo-style

Object.assign for all objects in an array

Installation

Install assign-all using npm:

npm install --save assign-all

Usage

Module usage

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

Package Sidebar

Install

npm i assign-all

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • joakimbeng