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

Function isStringArrayGuard

libs/state/selections/src/lib/utils/guards.ts:21–26  ·  view source on GitHub ↗
(op: any[])

Source from the content-addressed store, hash-verified

19}
20
21export function isStringArrayGuard(op: any[]): op is string[] {
22 if (!Array.isArray(op)) {
23 return false;
24 }
25 return op.length > 0 && op.every((i: any) => typeof i === 'string');
26}
27
28export function isIterableGuard<T>(obj: unknown): obj is Array<T> {
29 if (obj === null || obj === undefined) {

Callers 3

selectFunction · 0.90
typing.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected