From fd426613c1f2a9e15ad3144715f5ea222865a33c Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 29 Oct 2023 05:33:35 +0000 Subject: [PATCH] refactor(utils): replace `typeof` undefined check --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)