We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782304a commit 8d3e168Copy full SHA for 8d3e168
1 file changed
src/utils/grid.utils.ts
@@ -34,7 +34,7 @@ export const drawLayout = (
34
console.log(mapString);
35
};
36
37
-export const transpose = (matrix: number[][]) => {
+export const transpose = (matrix: number[][]): number[][] => {
38
const maxCols = Math.max(...matrix.map((row) => row.length));
39
const transposed: number[][] = Array.from({ length: maxCols }, () =>
40
Array(matrix.length).fill(null),
0 commit comments