merge-object

1.0.0 • Public • Published

merge-object

Merge object functional

installation via npm

npm install merge-object

API

merge-object(object-one, object-two)

for use

var merge = require('merge-object');
 
var A = {
    foo : 'foo'
};
 
var B = {
    bar : 'bar'
};
 
console.log(merge(A, B)); 

access property in object

var C = merge(A, B);
 
console.log(C.foo);
 
console.log(C.bar);

Package Sidebar

Install

npm i merge-object

Weekly Downloads

19

Version

1.0.0

License

MIT

Last publish

Collaborators

  • calrabbit
  • faizalpribadi