Fixed type parameter

Fixed magic number not using global
This commit is contained in:
Benjamin Claassen 2025-01-16 22:45:47 +01:00
parent e2f12161c0
commit 777573e71d
No known key found for this signature in database
GPG Key ID: C5F495EAE56673BF

View File

@ -30,7 +30,7 @@ class SudokuPuzzle extends EventTarget {
*
* @type {(number|null|undefined)[]}
*/
#activeState = new Array(9 * 9)
#activeState = new Array(SUDOKU_GRID_SIZE)
/**
*
@ -61,7 +61,7 @@ class SudokuPuzzle extends EventTarget {
/**
*
* @param serializedState {string}
* @returns {(?string)[]}
* @returns {((number|null|undefined))[]}
*/
static #stateFromString(serializedState) {
let cellIndex = 0