kumimojiSayfunction
A line from a table of strings with its braces filled in: kumimojiSay(strings.left, { n: 12, time: "1:05" }). A brace with no value is left as it is.
Import it
import { kumimojiSay } from "@johnmorrisdotca/kumimoji/ui";
Also exported from: @johnmorrisdotca/kumimoji
Definition
function kumimojiSay(line: string, values?: Readonly<Record<string, string | number>>): string
Parameters
| Name | Type | Description |
|---|---|---|
line | string | Text containing named replacement braces. |
values (optional) | Readonly<Record<string, string | number>> | Replacement text or numbers keyed by brace name. |
Returns
string
A line from a table of strings with its braces filled in: kumimojiSay(strings.left, { n: 12, time: "1:05" }). A brace with no value is left as it is.
Examples
import { kumimojiSay } from "@johnmorrisdotca/kumimoji/ui";
console.log(kumimojiSay("Tile {n}",{n:3}));Tile 3What it prints (run when this page was built)