Lines Matching refs:extend
110 …assert.equal(_.extend({}, {a: 'b'}).a, 'b', 'can extend an object with the attributes of another');
111 assert.equal(_.extend({a: 'x'}, {a: 'b'}).a, 'b', 'properties in source override destination');
112 … assert.equal(_.extend({x: 'x'}, {a: 'b'}).x, 'x', "properties not in source don't get overriden");
113 result = _.extend({x: 'x'}, {a: 'a'}, {b: 'b'});
115 result = _.extend({x: 'x'}, {a: 'a', x: 2}, {a: 'b'});
117 result = _.extend({}, {a: void 0, b: null});
124 …assert.deepEqual(_.extend({}, subObj), {a: 'b', c: 'd'}, 'extend copies all properties from source…
125 _.extend(subObj, {});
130 _.extend(result, null, void 0, {a: 1});
135 assert.strictEqual(_.extend(null, {a: 1}), null, 'extending null results in null');
136 … assert.strictEqual(_.extend(void 0, {a: 1}), void 0, 'extending undefined results in undefined');