14 lines
299 B
TypeScript
14 lines
299 B
TypeScript
/**
|
|
* DashboardCountDisplay
|
|
*
|
|
* Deterministic count formatting for dashboard display.
|
|
*/
|
|
|
|
export class DashboardCountDisplay {
|
|
static format(count: number | null | undefined): string {
|
|
if (count === null || count === undefined) {
|
|
return '0';
|
|
}
|
|
return count.toString();
|
|
}
|
|
} |