MCPcopy Create free account
hub / github.com/api-platform/website / getPreviousEdition

Function getPreviousEdition

pwa/data/con/editions.ts:42–47  ·  view source on GitHub ↗
(currentEdition: string)

Source from the content-addressed store, hash-verified

40];
41
42export function getPreviousEdition(currentEdition: string) {
43 const index = editions.findIndex(
44 (edition) => edition.year === currentEdition
45 );
46 return index && index > 0 ? editions[index - 1].year : null;
47}
48
49// eslint-disable-next-line @typescript-eslint/no-inferrable-types
50export const currentEdition: string = "2026";

Callers 3

NavFunction · 0.90
MobileNavFunction · 0.90
FooterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected