Skip to content

Commit 440d2b2

Browse files
committed
Optimizes code
1 parent d7e6622 commit 440d2b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export default {
6161
for (let i = 0; i < args.length; i += 1) {
6262
const b = args[i];
6363

64-
if (typeof b === "object" && b !== null && typeof b !== "undefined"
65-
&& typeof a === "object" && a !== null && typeof a !== "undefined") {
64+
if (typeof b === "object" && b !== null
65+
&& typeof a === "object" && a !== null) {
6666
for (let key in b) {
6767
if (b.hasOwnProperty(key)) {
68-
if (recursive && typeof b[key] === "object" && b[key] !== null && typeof b[key] !== "undefined") {
68+
if (recursive && typeof b[key] === "object" && b[key] !== null) {
6969
a[key] = this.extend(a[key], b[key]);
7070
} else {
7171
a[key] = b[key];

0 commit comments

Comments
 (0)