diff --git a/packages/common/src/Util.ts b/packages/common/src/Util.ts index 09f8f42..548516d 100644 --- a/packages/common/src/Util.ts +++ b/packages/common/src/Util.ts @@ -8,7 +8,7 @@ const isPlainObject = (value: any) => { typeof value.constructor === 'function' && // rome-ignore lint/suspicious/noPrototypeBuiltins: js tricks (value.constructor.prototype.hasOwnProperty('isPrototypeOf') || Object.getPrototypeOf(value.constructor.prototype) === null)) || - (value && Object.getPrototypeOf(value) === null) + (value != undefined && Object.getPrototypeOf(value) === null) ); };