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

Function isNumber

src/patterns.ts:738–740  ·  view source on GitHub ↗
(x: T | number)

Source from the content-addressed store, hash-verified

736}
737
738function isNumber<T>(x: T | number): x is number {
739 return typeof x === 'number';
740}
741
742function isString<T>(x: T | string): x is string {
743 return typeof x === 'string';

Callers 9

betweenFunction · 0.70
ltFunction · 0.70
gtFunction · 0.70
lteFunction · 0.70
gteFunction · 0.70
intFunction · 0.70
finiteFunction · 0.70
positiveFunction · 0.70
negativeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…