We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3884af9 commit 5a420e3Copy full SHA for 5a420e3
09-behavioral-design-patterns/09-iterator-matrix-generator/matrix.js
@@ -6,15 +6,15 @@ export class Matrix {
6
get (row, column) {
7
if (row >= this.data.length ||
8
column >= this.data[row].length) {
9
- throw new Error('Out of bounds')
+ throw new RangeError('Out of bounds')
10
}
11
return this.data[row][column]
12
13
14
set (row, column, value) {
15
16
17
18
19
this.data[row][column] = value
20
0 commit comments