Skip to the content

Toranpuトランプ

Use a deck, play twelve games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Stack Up

isStackUpMovefunction

Whether something is a move Stack Up has, by its shape.

Import it

import { isStackUpMove } from "@johnmorrisdotca/toranpu/stack-up";

Definition

function isStackUpMove(value: unknown): value is StackUpMove

Parameters

NameTypeDescription
valueunknown

The unknown value to validate.

Returns

boolean

Whether something is a move Stack Up has.

Examples

import { isStackUpMove } from "@johnmorrisdotca/toranpu/stack-up";
console.log(isStackUpMove({ pass: true }));
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.17.0.