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

Function isCount

packages/shared/src/features/patchy/patchyDay.ts:30–31  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

28});
29
30const isCount = (value: unknown): value is number =>
31 typeof value === 'number' && Number.isFinite(value) && value >= 0;
32
33// Anything stored for another day, or broken, starts a fresh day.
34export const parsePatchyDay = (raw: string | null, now: Date): PatchyDay => {

Callers 1

parsePatchyDayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected