MCPcopy Index your code
hub / github.com/darkreader/darkreader / isNonEmptyString

Function isNonEmptyString

src/utils/validation.ts:22–24  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

20}
21
22function isNonEmptyString(x: any): x is string {
23 return x && isString(x);
24}
25
26function isNonEmptyArrayOfNonEmptyStrings(x: any): x is any[] {
27 return Array.isArray(x) && x.length > 0 && x.every((s) => isNonEmptyString(s));

Callers 1

Calls 1

isStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…