Skip to the content

Fuda Cards札

Collectible card frames for images and live 3D: a true thickness, an edge, foil, stacks, wear and a binder, as two web components.

Fuda is the Japanese word 札 for a card or a tag. About the name

Contents

Reference · Collections and piles: pure helpers

isCardfunction

Whether an item is a card: anything that does not say it is an object. Only a card turns, has a back and lands turned over.

Import it

import { isCard } from "@johnmorrisdotca/fuda-cards/collection";

Definition

function isCard(card: Pick<CollectionCard, "kind">): boolean

Parameters

NameTypeDescription
cardPick<CollectionCard, "kind">

The item, or anything with its kind.

Returns

boolean

true for a card, false for an object.

Examples

import { isCard } from "@johnmorrisdotca/fuda-cards/collection";

console.log(isCard({}), isCard({ kind: "object" })); // true false
true false

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/fuda-cards 0.11.0.