MCPcopy Create free account
hub / github.com/dailydotdev/apps / isNumber

Function isNumber

packages/shared/src/features/monetization/refresh/adRefresh.ts:59–60  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

57export const MIN_VISIBLE_PERCENT = 50;
58
59const isNumber = (value: unknown): value is number =>
60 typeof value === 'number' && Number.isFinite(value);
61
62const isPositive = (value: unknown): value is number =>
63 isNumber(value) && value > 0;

Callers 2

isPositiveFunction · 0.85
isValidConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected