Reference · Rules, maps and records
tenkaContinentfunction
A continent of a map by its key.
Import it
import { tenkaContinent } from "@johnmorrisdotca/tenka";
Definition
function tenkaContinent(key: TenkaContinentKey, map?: TenkaMap): TenkaContinent
Parameters
| Name | Type | Description |
|---|---|---|
key | TenkaContinentKey | The continent identifier, or null to show the whole map. |
map (optional) | TenkaMap | The native world or Europe map to use. |
Returns
TenkaContinent
A continent of a map by its key.
Examples
import { tenkaContinent } from "@johnmorrisdotca/tenka";
console.log(tenkaContinent("europe").bonus);5What it prints (run when this page was built)