MCPcopy
hub / github.com/gvergnaud/ts-pattern / isString

Function isString

src/patterns.ts:742–744  ·  view source on GitHub ↗
(x: T | string)

Source from the content-addressed store, hash-verified

740}
741
742function isString<T>(x: T | string): x is string {
743 return typeof x === 'string';
744}
745
746function isBoolean<T>(x: T | boolean): x is boolean {
747 return typeof x === 'boolean';

Callers 7

startsWithFunction · 0.85
endsWithFunction · 0.85
minLengthFunction · 0.85
lengthFunction · 0.85
maxLengthFunction · 0.85
includesFunction · 0.85
regexFunction · 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…