UNPKG

matrix-transpose

Version:

Transposes a matrix by switching the row and column indices of a multidimensional array.

7 lines (6 loc) 162 B
type Matrix = any[][]; interface Options { excludeEmpty?: boolean; } export declare function transpose(matrix: Matrix, options?: Options): Matrix; export {};