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

Function isNumber

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

Source from the content-addressed store, hash-verified

35
36const isTime = isRegExpMatch(/^((0?[0-9])|(1[0-9])|(2[0-3])):([0-5][0-9])$/);
37function isNumber(x: any): x is number {
38 return typeof x === 'number' && !isNaN(x);
39}
40
41function isNumberBetween(min: number, max: number) {
42 return (x: any): x is number => {

Callers 2

isNumberBetweenFunction · 0.85
isValidLocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected