MCPcopy Create free account
hub / github.com/InsForge/InsForge / toISOStringOrNull

Function toISOStringOrNull

backend/src/utils/dates.ts:5–11  ·  view source on GitHub ↗
(value: Date | string | null | undefined)

Source from the content-addressed store, hash-verified

3}
4
5export function toISOStringOrNull(value: Date | string | null | undefined): string | null {
6 if (value === null || value === undefined) {
7 return null;
8 }
9
10 return toISOString(value);
11}

Callers 12

date-utils.test.tsFile · 0.90
normalizeCustomerRowMethod · 0.85
normalizeItemRowMethod · 0.85
normalizePlanRowMethod · 0.85
normalizeOrderRowMethod · 0.85

Calls 1

toISOStringFunction · 0.70

Tested by

no test coverage detected