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 · Draw a bracket, a table or a road to the final

RankingNametype

A name in two parts: the family name is written in capitals and first by default (SURNAME Given, as judo and the IJF write it).

Import it

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

Definition

interface RankingName {
    given?: string;
    surname: string;
}

Members

NameTypeDescription
given (optional)string | undefined
surnamestring

Examples

import { rankingList, type RankingName } from "@johnmorrisdotca/taisen-brackets";

const name: RankingName = { surname: "Nakamura", given: "Kenji" };
console.log(rankingList({ entries: [{ name, points: 412.5 }] }).includes("NAKAMURA Kenji"));
true

What it prints (run when this page was built)

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