chore: eslint no-bitwise

This commit is contained in:
Peter Jaszkowiak
2021-02-03 23:51:03 -07:00
committed by Julian Lam
parent 58528d1a3e
commit dad01e3051
4 changed files with 4 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ function expandObjBy(obj1, obj2) {
if (obj2.hasOwnProperty(key)) {
val2 = obj2[key];
val1 = obj1[key];
xorValIsArray = Array.isArray(val1) ^ Array.isArray(val2);
xorValIsArray = Array.isArray(val1) === Array.isArray(val2);
if (xorValIsArray || !obj1.hasOwnProperty(key) || typeof val2 !== typeof val1) {
obj1[key] = val2;
changed = true;