MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / layerOf

Function layerOf

__tests__/ui-map-model.test.ts:69–73  ·  view source on GitHub ↗
(layout: MapLayout, id: string)

Source from the content-addressed store, hash-verified

67}
68
69function layerOf(layout: MapLayout, id: string): number {
70 const node = layout.nodes.find((n) => n.id === id);
71 expect(node, `no node ${id}`).toBeTruthy();
72 return node!.layer;
73}
74
75const OPTS = { includeTests: false };
76

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected