Skip to content

Commit

Permalink
fix: settings v3
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Feb 16, 2021
1 parent 0738dae commit 91734a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function expandObjBy(obj1, obj2) {
let changed = false;
for (const [key, val2] of Object.entries(obj2)) {
const val1 = obj1[key];
const xorIsArray = Array.isArray(val1) === Array.isArray(val2);
const xorIsArray = Array.isArray(val1) !== Array.isArray(val2);
if (xorIsArray || !obj1.hasOwnProperty(key) || typeof val2 !== typeof val1) {
obj1[key] = val2;
changed = true;
Expand Down

0 comments on commit 91734a6

Please sign in to comment.