1 contributor
Like
Install have-empty-cell as a package?
Copied
npm i @bit/joshk.tic-tac-toe-game.utils.have-empty-cell
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraftmodifieddraftmodifieddraftmodifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
No preview available
No preview available
No preview available
chevron_left
chevron_right
utils/haveEmptyCell (
matrix,
rowsNum:
number
,colsNum:
) : number
boolean
check if 2d array have an empty cell
Examples
Arguments
matrix
2d array
rowsNum:
number
number of rows
colsNum:
number
number of columns
Returns
boolean
return true if empty cell was found, and false if not.
Test Summary
haveEmptyCell cell function should return false | Pass |
haveEmptyCell cell function should return true | Pass |