Skip to content

Commit

Permalink
refactor(utils): replace typeof undefined check (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 29, 2023
1 parent 5bb3908 commit 3220ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3220ca5

Please sign in to comment.