We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a701b9f commit 0380090Copy full SHA for 0380090
src/utils.js
@@ -89,6 +89,7 @@ var utils = module.exports = {
89
if (protective && obj[key]) continue
90
obj[key] = ext[key]
91
}
92
+ return obj
93
},
94
95
/**
test/unit/specs/utils.js
@@ -137,6 +137,12 @@ describe('UNIT: Utils', function () {
137
assert.strictEqual(a.b, b.b)
138
})
139
140
+ it('should always return the extended object', function () {
141
+ var a = {a: 1}, b = {a: {}, b: 2}
142
+ assert.strictEqual(a, utils.extend(a, b))
143
+ assert.strictEqual(a, utils.extend(a, undefined))
144
+ })
145
+
146
147
148
describe('unique', function () {
0 commit comments