Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 226 Bytes

.verb.md

File metadata and controls

16 lines (12 loc) · 226 Bytes

Usage

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

extend({a: 'b'}, {c: 'd'})
//=> {a: 'b', c: 'd'}

Pass an empty object to shallow clone:

var obj = {};
extend(obj, {a: 'b'}, {c: 'd'})
//=> {a: 'b', c: 'd'}