assign-all
Object.assign for all objects in an array
Installation
Install assign-all
using npm:
npm install --save assign-all
Usage
Module usage
var assignAll = ; ;// {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