Reference · Where every tie sits
roundNamesForfunction
The generic names of count rounds, first round first: roundNamesFor(3) is Quarter-finals, Semi-finals, Final.
Import it
import { roundNamesFor } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets/presets, @johnmorrisdotca/taisen-brackets
Definition
function roundNamesFor(count: number): string[]
Parameters
| Name | Type | Description |
|---|---|---|
count | number | How many rounds the bracket has. |
Returns
string[]
The names, in order.
Examples
import { roundNamesFor } from "@johnmorrisdotca/taisen-brackets";
console.log(roundNamesFor(3));[ 'Quarter-finals', 'Semi-finals', 'Final' ]What it prints (run when this page was built)