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

Function isFolder

website/app/utils/docs/navigation.ts:25–26  ·  view source on GitHub ↗
(node: PageTree.Node)

Source from the content-addressed store, hash-verified

23 node.type === 'page';
24
25const isFolder = (node: PageTree.Node): node is PageTree.Folder =>
26 node.type === 'folder';
27
28const firstInternalPageUrl = (node: PageTree.Node): string | undefined => {
29 if (isPage(node)) return node.external ? undefined : node.url;

Callers 2

firstInternalPageUrlFunction · 0.85
visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected