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
| Name | Type | Description |
|---|---|---|
given (optional) | string | undefined | |
surname | string |
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"));trueWhat it prints (run when this page was built)