Reference · Rules, maps and records
boardOffunction
The map an argument names, and the world for anything that is not one: these functions are handed to an
array's map and filter (deck.map(cardKind)), which pass an index where the map would go.
Import it
import { boardOf } from "@johnmorrisdotca/tenka";
Definition
function boardOf(map: unknown): TenkaMap
Parameters
| Name | Type | Description |
|---|---|---|
map | unknown | The native world or Europe map to use. |
Returns
TenkaMap
The map an argument names, and the world for anything that is not one: these functions are handed to an array's map and filter (deck.map(cardKind)), which pass an index where the map would go.
Examples
import { boardOf } from "@johnmorrisdotca/tenka";
console.log(boardOf("europe").key);worldWhat it prints (run when this page was built)