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

Function isIterableGuard

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

Source from the content-addressed store, hash-verified

26}
27
28export function isIterableGuard<T>(obj: unknown): obj is Array<T> {
29 if (obj === null || obj === undefined) {
30 return false;
31 }
32 return typeof (obj as any)[Symbol.iterator] === 'function';
33}
34
35export function isKeyOf<O>(k: unknown): k is keyof O {
36 const typeofK = typeof k;

Callers 1

typing.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected