1.0.0 • Published 9 years ago

assign-all v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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)

NameTypeDescription
arrArrayThe array of objects to merge

Returns: Object, the merged object.

License

MIT