assigner

1.0.0 • Public • Published

assigner Build Status

Assign objects

Install

$ npm install assigner

Usage

const assigner = require('assigner');
 
const a = { a: 'foo', c: 'foo-bar' };
const b = { a: 'bar', b: 'baz' };
 
assigner(a, b);
// => { a: 'bar', b: 'baz', c: 'foo-bar' }

API

assigner(...object)

object

Type: object

As many objects as you want. The last one will win.

License

MIT © Tobias Herber

/assigner/

    Package Sidebar

    Install

    npm i assigner

    Weekly Downloads

    7

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.55 kB

    Total Files

    4

    Last publish

    Collaborators

    • tobihrbr