Skip to content

Commit

Permalink
Merge pull request jashkenas#1259 from hackreactor/master
Browse files Browse the repository at this point in the history
Typo in expectation, extend really does copy undefined properties
  • Loading branch information
braddunbar committed Aug 15, 2013
2 parents db588fa + b7f79c8 commit 4264e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/objects.js
Expand Up @@ -52,7 +52,7 @@ $(document).ready(function() {
result = _.extend({x:'x'}, {a:'a', x:2}, {a:'b'});
ok(_.isEqual(result, {x:2, a:'b'}), 'extending from multiple source objects last property trumps');
result = _.extend({}, {a: void 0, b: null});
equal(_.keys(result).join(''), 'ab', 'extend does not copy undefined values');
equal(_.keys(result).join(''), 'ab', 'extend copies undefined values');

try {
result = {};
Expand Down

0 comments on commit 4264e07

Please sign in to comment.