Reference · Draw a bracket, a table or a road to the final
judoPodiumfunction
The gold, silver and two bronze medals of a bracket (matchups, input or layout), from the final, the bronze medal contests or the semi-finals.
Import it
import { judoPodium } from "@johnmorrisdotca/taisen-brackets";
Definition
function judoPodium(input: BracketLayout | readonly Matchup[] | BracketInput): JudoPodium
Parameters
| Name | Type | Description |
|---|---|---|
input | readonly Matchup[] | BracketInput | BracketLayout | The matchups, a |
Returns
JudoPodium
The podium; a place is null until its contest is played.
Examples
import { advanceWinners, judoBracket, judoPodium } from "@johnmorrisdotca/taisen-brackets";
const { matchups } = judoBracket(["Haru", "Marc", "Levan", "Min"].map((name) => ({ id: name, name })));
console.log(judoPodium(advanceWinners(matchups)).gold);nullWhat it prints (run when this page was built)