isStonefunction
Narrows a cell to a played stone, excluding empties and obstacles.
Import it
import { isStone } from "@johnmorrisdotca/narabe";
Definition
function isStone(cell: Cell): cell is Stone
Parameters
| Name | Type | Description |
|---|---|---|
cell | Cell | The board cell to check. |
Returns
boolean
Narrows a cell to a played stone, excluding empties and obstacles.
Examples
import { isStone } from "@johnmorrisdotca/narabe";
console.log(isStone("black"));trueWhat it prints (run when this page was built)