refactor: Delete isPlainObject type guard and replace its usages with direct typeof checks.
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
const objectToString = Object.prototype.toString;
|
||||
|
||||
export const isPlainObject = (value: unknown): value is Record<string, unknown> =>
|
||||
value !== null && !Array.isArray(value) && Object(value) === value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user