Reference · Marking, scores and game rules
toggleSizefunction
小: a kana made small, or large again (つ ⇄ っ); one with no small form stays as it is.
Import it
import { toggleSize } from "@johnmorrisdotca/kotoba";
Definition
function toggleSize(kana: string): string
Parameters
| Name | Type | Description |
|---|---|---|
kana | string | One kana character, including supported small or voiced forms. |
Returns
string
小: a kana made small, or large again (つ ⇄ っ); one with no small form stays as it is.
Examples
import { toggleSize } from "@johnmorrisdotca/kotoba";
console.log(toggleSize("つ"));っWhat it prints (run when this page was built)