Skip to the content

Tane種

Reproduce numbers from a seed, shuffle or pick items, share a daily puzzle and resume a saved stream.

Tane means seed in Japanese. About the name

Contents

Reference · Streams, draws and seeds

isDayKeyfunction

Whether a text is a real date written YYYY-MM-DD: 2026-02-30 is not.

Import it

import { isDayKey } from "@johnmorrisdotca/tane";

Definition

function isDayKey(text: string): boolean

Parameters

NameTypeDescription
textstring

Text to hash, validate or decode.

Returns

boolean

Whether a text is a real date written YYYY-MM-DD: 2026-02-30 is not.

Examples

import { isDayKey } from "@johnmorrisdotca/tane";

console.log(isDayKey("2026-02-30"));
false

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tane 1.3.0.