Skip to main content

Function: latestSeason()

latestSeason(league): number | null

Defined in: packages/sdvplot/src/index-data.ts:79

The latest season any dated alias of league names (the last relocation or rename the index records), or null when no alias is dated. It is not the current season: the NHL's is 1997. A value resolved without a season is matched at this season first.

Parameters​

league​

"aaf" | "ahl" | "cfb" | "cricket" | "echl" | "mbb" | "milb" | "mlb" | "nba" | "nbagl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "ohl" | "phf" | "pwhl" | "qmjhl" | "soccer" | "ufl" | "usfl" | "ushl" | "wbb" | "whl" | "wnba" | "xfl"

Returns​

number | null