6 lines
175 B
TypeScript
Executable File
6 lines
175 B
TypeScript
Executable File
export function isObject(maybe: unknown): maybe is object {
|
|
return (
|
|
typeof maybe === 'object' && maybe !== null && !Array.isArray(maybe) && !(maybe instanceof Date)
|
|
);
|
|
}
|