MCPcopy
hub / github.com/stravu/crystal / parseCreatedAt

Function parseCreatedAt

frontend/src/components/DraggableProjectTreeView.tsx:63–67  ·  view source on GitHub ↗
(value?: string | null)

Source from the content-addressed store, hash-verified

61 };
62
63const parseCreatedAt = (value?: string | null): number => {
64 if (!value) return 0;
65 const timestamp = Date.parse(value);
66 return Number.isNaN(timestamp) ? 0 : timestamp;
67};
68
69const createTreeItemComparator = (ascending: boolean) => {
70 const direction = ascending ? 1 : -1;

Callers 2

renderFolderFunction · 0.85
DraggableProjectTreeViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected