mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix the silly logger
This commit is contained in:
parent
e541c4b19c
commit
d70af2013d
@ -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)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user