0.1.3 • Published 11 years ago
sak-merge v0.1.3
Util-merge
Version 0.1.3
Utility for merging two or more objects.
Created by Thomas de Zeeuw, thomasdezeeuw@gmail.com (https://thomasdezeeuw.nl/).
Released under a MIT license.
Exports
Merge
Function
Merge an object with other object(s).
Example
var obj1 = {a: 'a'}
, obj2 = {b: 'b'};
var obj = merge(obj1, obj2);
console.log('obj', obj) // Obj {a: 'a', b: 'b'}
Params
Name | Description | Type |
---|---|---|
obj | Objects that need to be merged, overwrites from right to left. | Object |
Return
Description | Type |
---|---|
A single merged object. | Object |