MCPcopy Index your code
hub / github.com/anomalyco/models.dev / capabilitySummary

Function capabilitySummary

packages/web/src/shared.ts:78–84  ·  view source on GitHub ↗
(capabilities: Array<[string, boolean | undefined]>)

Source from the content-addressed store, hash-verified

76}
77
78export function capabilitySummary(capabilities: Array<[string, boolean | undefined]>) {
79 const active = capabilities
80 .filter(([, value]) => value === true)
81 .map(([label]) => label);
82
83 return active.length > 0 ? active.join(", ") : "-";
84}
85
86export function sortDate(value?: string) {
87 return value ?? "";

Callers 2

modelPageMetadataFunction · 0.85
ModelPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected