MCPcopy Create free account
hub / github.com/simstudioai/sim / pad2

Function pad2

packages/emcn/src/components/calendar/calendar.tsx:39–41  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

37}
38
39function pad2(value: number): string {
40 return value.toString().padStart(2, '0')
41}
42
43/**
44 * Serializes a calendar cell to the `YYYY-MM-DD` wire format used across the

Callers 1

toDateStringFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected