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

Function if

packages/dev/docs/src/Layout.js:459–461  ·  view source on GitHub ↗
(pageCategories.has(category))

Source from the content-addressed store, hash-verified

457 let categories = [];
458 for (let category of CATEGORY_ORDER) {
459 if (pageCategories.has(category)) {
460 categories.push(category);
461 } else if (category === '...') {
462 for (let category of [...pageCategories].sort()) {
463 if (!CATEGORY_ORDER.includes(category)) {
464 categories.push(category);

Callers 1

Layout.jsFile · 0.70

Calls 2

pushMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected