diff --git a/src/utils/key-in-object.ts b/src/utils/key-in-object.ts index 4fb0ff8..8873fec 100644 --- a/src/utils/key-in-object.ts +++ b/src/utils/key-in-object.ts @@ -6,7 +6,7 @@ export default function keyInObject(obj: any, key: string): boolean { } if (!keys.length) { - return !!obj[baseKey]; + return baseKey in obj; } let value = obj[baseKey];