Reference · Rules, maps and records
isTerritoryfunction
Whether a number is a territory of the map.
Import it
import { isTerritory } from "@johnmorrisdotca/tenka";
Definition
function isTerritory(territory: number, map?: TenkaMap): boolean
Parameters
| Name | Type | Description |
|---|---|---|
territory | number | The native territory index. |
map (optional) | TenkaMap | The native world or Europe map to use. |
Returns
boolean
Whether a number is a territory of the map.
Examples
import { isTerritory } from "@johnmorrisdotca/tenka";
console.log(isTerritory(42));falseWhat it prints (run when this page was built)