function / @typed/template

isArray

Checks if a rendered value is an array of nodes.

Package version
1.0.0-beta.13
Category
Output collection recognition
Since
1.0.0

Import

import { isArray } from "@typed/template";

Signatures

export declare function isArray(node: Rendered): node is ReadonlyArray<Rendered>;

Why

Recursive Rendered collections can be normalized without wrapper nodes.

Ownership and lifetime

The check borrows the array container and does not traverse, flatten, or retain its Rendered entries.

Examples

import { isArray } from "@typed/template/Wire"

const result = isArray([document.createTextNode("hello")])

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source