Reference · Rules, maps and records
tradeValuefunction
What the next set traded in is worth, when trades sets have been traded before it: 4, 6, 8, 10, 12, 15, 20, 25…
Import it
import { tradeValue } from "@johnmorrisdotca/tenka";
Definition
function tradeValue(trades: number): number
Parameters
| Name | Type | Description |
|---|---|---|
trades | number | The number of sets already traded. |
Returns
number
What the next set traded in is worth, when trades sets have been traded before it: 4, 6, 8, 10, 12, 15, 20, 25…
Examples
import { tradeValue } from "@johnmorrisdotca/tenka";
console.log(tradeValue(3));10What it prints (run when this page was built)