MCPcopy Index your code
hub / github.com/adobe/react-spectrum / isSectionMap

Function isSectionMap

packages/dev/s2-docs/src/Nav.tsx:14–16  ·  view source on GitHub ↗
(value: SectionValue)

Source from the content-addressed store, hash-verified

12type SectionValue = Page[] | Map<string, Page[]>;
13
14function isSectionMap(value: SectionValue): value is Map<string, Page[]> {
15 return value instanceof Map;
16}
17
18export function Nav() {
19 let {pages, currentPage} = useRouter();

Callers 1

NavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected