Skip to the content

Hitotsu一つ

Match the colour or number, call with one card left, and play classic or party rules against computers or at a shared table.

Hitotsu is Japanese for one: the call with one card left. About the name

Contents

Reference · Table element

defineHitotsuTablefunction

Register a default or custom-tag native table; safe on servers and idempotent.

Import it

import { defineHitotsuTable } from "@johnmorrisdotca/hitotsu/element";

Also exported from: @johnmorrisdotca/hitotsu/element/define, @johnmorrisdotca/hitotsu/element-define

Definition

function defineHitotsuTable(tagName?: string, registry?: CustomElementRegistry | undefined): void

Parameters

NameTypeDescription
tagName (optional)string

The custom tag, defaulting to hitotsu-table.

registry (optional)CustomElementRegistry | undefined

The browser registry, undefined on a server.

Examples

import { defineHitotsuTable } from "@johnmorrisdotca/hitotsu/element";
defineHitotsuTable();
console.log(typeof defineHitotsuTable);
function

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hitotsu 1.4.0.