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