MCPcopy
hub / github.com/rx-angular/rx-angular / isObjectGuard

Function isObjectGuard

libs/state/selections/src/lib/utils/guards.ts:44–51  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

42}
43
44export function isObjectGuard(obj: unknown): obj is object {
45 return (
46 obj !== null &&
47 obj !== undefined &&
48 typeof obj === 'object' &&
49 !Array.isArray(obj)
50 );
51}
52
53export function isDefined(val: unknown): val is NonNullable<any> {
54 return val !== null && val !== undefined;

Callers 2

safePluckFunction · 0.90
typing.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected