MCPcopy Create free account
hub / github.com/fontsource/fontsource / nodeName

Function nodeName

website/app/utils/docs/navigation.ts:20–20  ·  view source on GitHub ↗
(node: { name?: ReactNode })

Source from the content-addressed store, hash-verified

18}
19
20const nodeName = (node: { name?: ReactNode }) => String(node.name ?? '');
21
22const isPage = (node: PageTree.Node): node is PageTree.Item =>
23 node.type === 'page';

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected