- hasMember<T, K>(instance: unknown, property: K, verify?: boolean): instance is { [ P in PropertyKey]: unknown } & T
-
Type Parameters
-
T = unknown
-
K extends PropertyKey = keyof T
Parameters
-
instance: unknown
-
property: K
-
verify: boolean = false
Returns instance is { [ P in PropertyKey]: unknown } & T
Will detect if a member exists (using 'in'). Returns true if a property or method exists on the object or its prototype.
Returns