Removed extra variable

This commit is contained in:
Benjamin Claassen 2025-01-17 01:01:23 +01:00
parent b3cfeea045
commit cfa484c6c3
No known key found for this signature in database
GPG Key ID: C5F495EAE56673BF

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]
}