fix the silly logger

This commit is contained in:
Yuzuru 2023-06-29 07:49:07 -05:00
parent e541c4b19c
commit d70af2013d

View File

@ -8,7 +8,7 @@ const isPlainObject = (value: any) => {
typeof value.constructor === 'function' && typeof value.constructor === 'function' &&
// rome-ignore lint/suspicious/noPrototypeBuiltins: js tricks // rome-ignore lint/suspicious/noPrototypeBuiltins: js tricks
(value.constructor.prototype.hasOwnProperty('isPrototypeOf') || Object.getPrototypeOf(value.constructor.prototype) === null)) || (value.constructor.prototype.hasOwnProperty('isPrototypeOf') || Object.getPrototypeOf(value.constructor.prototype) === null)) ||
(value && Object.getPrototypeOf(value) === null) (value != undefined && Object.getPrototypeOf(value) === null)
); );
}; };