diff --git a/src/utils.js b/src/utils.js index 1026f42..40446b5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -52,7 +52,7 @@ const combineArray = (options) => { source.forEach((item, index) => { const prop = target.find(attr => attr.name === item.name) - if (typeof result[index] === 'undefined') { + if (result[index] === undefined) { result[index] = clone(item) } else if (isMergeableObject(prop)) { const propIndex = target.findIndex(prop => prop.name === item.name)