assertarray(x: unknown): asserts x is array
Asserts that a value is a 1D array.
Throws a TypeError if the input is not a 1D array. Uses TypeScript's type assertion to narrow the type.
asserts x is array
assertarray(x: unknown): asserts x is array
Asserts that a value is a 1D array.
Throws a TypeError if the input is not a 1D array. Uses TypeScript's type assertion to narrow the type.
asserts x is array
import assertarray from "datatype/assertarray.ts";