MCPcopy Create free account
hub / github.com/ngrx/platform / isClassInstance

Function isClassInstance

modules/effects/src/utils.ts:7–13  ·  view source on GitHub ↗
(obj: object)

Source from the content-addressed store, hash-verified

5}
6
7export function isClassInstance(obj: object): boolean {
8 return (
9 !!obj.constructor &&
10 obj.constructor.name !== 'Object' &&
11 obj.constructor.name !== 'Function'
12 );
13}
14
15export function isClass(
16 classOrRecord: Type<unknown> | Record<string, unknown>

Callers 2

toActionsMethod · 0.90
utils.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected