export function isObject( value: T, ): value is Exclude { return typeof value === "object" && value !== null } type Primitive = string | number | boolean | undefined | null type AnyFunction = (...args: any[]) => any