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