Reference · Draw a bracket, a table or a road to the final
describeNumberOnesfunction
The cards as a sentence, the drawing's description.
Import it
import { describeNumberOnes } from "@johnmorrisdotca/taisen-brackets";
Definition
function describeNumberOnes(source: NumberOnesSource, options?: Pick<NumberOnesOptions, "locale" | "words" | "nameStyle" | "precision">): string
Parameters
| Name | Type | Description |
|---|---|---|
source | NumberOnesSource | The number ones. |
options (optional) | Pick<NumberOnesOptions, "locale" | "words" | "nameStyle" | "precision"> | The language, the words, the name style and the precision. |
Returns
string
The description.
Examples
import { describeNumberOnes } from "@johnmorrisdotca/taisen-brackets";
console.log(describeNumberOnes({ cards: [{ category: "-60 kg", entry: { name: "Nakamura", points: 1240 } }] }));Number ones. #1 in -60 kg, Nakamura, 1,240 points.What it prints (run when this page was built)