Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 364 Bytes

.verb.md

File metadata and controls

17 lines (13 loc) · 364 Bytes

If you only want to combine own-properties, use extend-shallow.

Usage

var mixin = require('{%= name %}');

var obj = {c: 'c'};
var foo = mixin({a: 'a'}, {b: 'b'});
console.log(foo);
//=> {c: 'c', a: 'a', b: 'b'}
console.log(obj);
//=> {c: 'c'}

mixin({}, {a: 'a'}, {b: 'b'});
//=> {a: 'a', b: 'b'}