MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isSectionMap

Function isSectionMap

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

Source from the content-addressed store, hash-verified

21type SectionValue = Page[] | Map<string, Page[]>;
22
23function isSectionMap(value: SectionValue): value is Map<string, Page[]> {
24 return value instanceof Map;
25}
26
27export function Nav() {
28 let {pages, currentPage} = useRouter();

Callers 1

NavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected