Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

Reference · Ready-made formats for each league

playoffErasfunction

Every era of a league, oldest first.

Import it

import { playoffEras } from "@johnmorrisdotca/taisen-brackets/presets";

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

function playoffEras(league: League): PlayoffFormat[]

Parameters

NameTypeDescription
leagueLeague

The league.

Returns

PlayoffFormat[]

The formats, one for each era; an empty list for a league with none.

Examples

import { playoffEras } from "@johnmorrisdotca/taisen-brackets";

console.log(playoffEras("nba").map((era) => era.from));
[ 1977, 1984, 2003 ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.