Skip to the content

Tsunagi繋ぎ

Join each pair with a separate line and fill the board, through fixed levels or seeded puzzles.

Tsunagi means joining in Japanese. About the name

Contents

Reference · SVG board

tsunagiLanguageOffunction

The language a piece of text is in: Japanese for anything starting ja, English for everything else.

Import it

import { tsunagiLanguageOf } from "@johnmorrisdotca/tsunagi/draw";

Definition

function tsunagiLanguageOf(tag: string | null | undefined): TsunagiLanguage

Parameters

NameTypeDescription
tagstring | null | undefined

The custom-element tag name to register.

Returns

TsunagiLanguage

The language a piece of text is in: Japanese for anything starting ja, English for everything else.

Examples

import { tsunagiLanguageOf } from "@johnmorrisdotca/tsunagi/draw";

console.log(tsunagiLanguageOf("ja-JP"));
ja

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tsunagi 1.7.0.