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

Function isString

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

Source from the content-addressed store, hash-verified

16}
17
18function isString(x: any): x is string {
19 return typeof x === 'string';
20}
21
22function isNonEmptyString(x: any): x is string {
23 return x && isString(x);

Callers 2

isNonEmptyStringFunction · 0.85
isRegExpMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…