Removed extra variable

This commit is contained in:
BordedDev 2025-01-17 01:01:23 +01:00
parent 8d1139b2e6
commit f08cd376a2

View File

@ -95,7 +95,7 @@ class SudokuPuzzle extends EventTarget {
* @returns {undefined|number}
*/
#sampleRandomEmptyField(stateToSample = this.#activeState) {
const iters = [...stateToSample.entries().filter(([_, v]) => v == null)]
const iters = [...stateToSample.entries().filter(([, v]) => v == null)]
if (iters.length > 0) {
return iters[randInt(0, iters.length - 1)][0]
}