MCPcopy
hub / github.com/anomalyco/models.dev / booleanText

Function booleanText

packages/web/src/shared.ts:34–37  ·  view source on GitHub ↗
(value?: boolean)

Source from the content-addressed store, hash-verified

32}
33
34export function booleanText(value?: boolean) {
35 if (value === undefined) return "-";
36 return value ? "Yes" : "No";
37}
38
39export function formatCost(cost?: number) {
40 return cost === undefined ? "-" : `$${cost.toFixed(2)}`;

Callers 2

ModelTableFunction · 0.85
ProviderModelsTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected