Simplified is valid func

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

View File

@ -198,9 +198,7 @@ class SudokuPuzzle extends EventTarget {
* @return boolean
*/
isValueValidForSlot(value, slot, state = this.#activeState) {
return !this.#boxGetValues(slot, state)
.union(this.#crossGetValues(slot, state))
.has(value)
return !this.getValues(slot, state).has(value)
}
/**