Skip to content

Commit a80cfea

Browse files
committed
chore: keep output typing
1 parent 95b5f4d commit a80cfea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ export class SparseMatrix {
6464
}
6565

6666
/**
67-
* @returns {Float64Array[]}
67+
* @returns {number[][]}
6868
*/
6969
to2DArray() {
7070
const copy = Array.from({ length: this.rows }, () =>
71-
Float64Array.from({ length: this.columns }),
71+
Array.from({ length: this.columns }, () => 0),
7272
);
7373
this.withEachNonZero((i, j, v) => {
7474
copy[i][j] = v;

0 commit comments

Comments
 (0)