MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / numberWithDefault

Function numberWithDefault

app/src/utils/utils.ts:39–42  ·  view source on GitHub ↗
(
  num: number | string | bigint | null | undefined,
  defaultValue = 0,
)

Source from the content-addressed store, hash-verified

37}
38
39export const numberWithDefault = (
40 num: number | string | bigint | null | undefined,
41 defaultValue = 0,
42) => Number(num ?? defaultValue);

Callers 1

UsageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected