Reference · Draw a bracket, a table or a road to the final
matchupRecordfunction
The record of the meetings: how many each athlete won. A draw or a meeting with no winner is in neither.
Import it
import { matchupRecord } from "@johnmorrisdotca/taisen-brackets";
Definition
function matchupRecord(meetings?: readonly RankingMeeting[]): [number, number]
Parameters
| Name | Type | Description |
|---|---|---|
meetings (optional) | readonly RankingMeeting[] | The meetings. |
Returns
[number, number]
The wins of the first athlete and of the second.
Examples
import { matchupRecord } from "@johnmorrisdotca/taisen-brackets";
console.log(matchupRecord([
{ date: "2026-09-13", event: "Fall Open", round: "Semi-final", winner: 0, result: "ippon · 2:11" },
{ date: "2026-05-17", event: "Spring Classic", round: "Final", winner: 1, result: "waza-ari · golden score" },
]).join("–"));1–1What it prints (run when this page was built)