assertMatrix
Asserts that a value is a matrix, narrowing its type, and throws if it is not.
API Reference
Signature
Parameters
Returns
void. Narrows value to Matrix<unknown> on success. Does not clone.
Throws
MATRIX_INVALID_MATRIX— value is not a valid matrix structure (same rule as from).