MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / cn

Function cn

dashboard/lib/cn.ts:1–12  ·  view source on GitHub ↗
(...args: unknown[])

Source from the content-addressed store, hash-verified

1export function cn(...args: unknown[]): string {
2 const out: string[] = [];
3 const visit = (value: unknown): void => {
4 if (Array.isArray(value)) {
5 for (const v of value) visit(v);
6 } else if (typeof value === "string" && value.length > 0) {
7 out.push(value);
8 }
9 };
10 for (const a of args) visit(a);
11 return out.join(" ");
12}

Callers 12

blockFunction · 0.90
ButtonFunction · 0.90
InputFunction · 0.90
CheckboxFunction · 0.90
SelectFunction · 0.90
TabsFunction · 0.90
EmptyStateFunction · 0.90
ErrorPanelFunction · 0.90
SkeletonLinesFunction · 0.90
StatFunction · 0.90
BarListFunction · 0.90
AppFunction · 0.50

Calls 1

visitFunction · 0.70

Tested by

no test coverage detected