Reference · Ready-made formats for each league
playoffFormatfunction
The playoff format of a league in a season (or a World Cup in its year), or null when there was none or this
package does not cover it. The rounds' names go straight to drawBracket's roundNames.
Import it
import { playoffFormat } from "@johnmorrisdotca/taisen-brackets/presets";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
function playoffFormat(league: League, year: number): PlayoffFormat | null
Parameters
| Name | Type | Description |
|---|---|---|
league | League | The league. |
year | number | The year the playoffs were played. |
Returns
PlayoffFormat | null
The format, or null when the league had no playoffs that year or the year is outside the ones known.
Examples
import { playoffFormat } from "@johnmorrisdotca/taisen-brackets";
console.log(playoffFormat("nhl", 2024)?.rounds.map((round) => round.name), playoffFormat("nhl", 1900));[
'First Round',
'Second Round',
'Conference Finals',
'Stanley Cup Final'
] nullWhat it prints (run when this page was built)