diff --git a/lib/utils.js b/lib/utils.js index 0ef9366..ade8309 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -351,10 +351,8 @@ function merge(/* obj1, obj2, obj3, ... */) { result[targetKey] = merge({}, val); } else if (isArray(val)) { result[targetKey] = val.slice(); - } else { - if (!skipUndefined || !isUndefined(val)) { - result[targetKey] = val; - } + } else if (!skipUndefined || !isUndefined(val)) { + result[targetKey] = val; } }