Checks if the specified cell coordinates (row, col) lie within quadrille bounds, i.e., returns true if row ∈ [0..height] and col ∈ [0..width], and false otherwise.
To check bounds individually, you can callquadrille.isValid(row, 0)to test only ifrowis within bounds, orquadrille.isValid(0, col)to test only ifcolis within bounds.
Syntax #
isValid(row, col)
Parameters #
| Param | Description |
|---|---|
row | Number: row index of the cell to be checked |
col | Number: column index of the cell to be checked |