matchupRecord関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The record of the meetings: how many each athlete won. A draw or a meeting with no winner is in neither.
インポート
import { matchupRecord } from "@johnmorrisdotca/taisen-brackets";
定義
function matchupRecord(meetings?: readonly RankingMeeting[]): [number, number]
引数
| 名前 | 型 | 説明 |
|---|---|---|
meetings (省略可) | readonly RankingMeeting[] | The meetings. |
戻り値
[number, number]
The wins of the first athlete and of the second.
例
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–1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。