Reference · Cube engine and views
paceSecondsfunction
Seconds for a pace given as a number or a name; the default for anything else.
Import it
import { paceSeconds } from "@johnmorrisdotca/kyuubu";
Definition
function paceSeconds(pace: number | ScramblePace | undefined): number
Parameters
| Name | Type | Description |
|---|---|---|
pace | number | "fast" | "normal" | "slow" | undefined | A pace name or seconds per turn. |
Returns
number
Seconds for a pace given as a number or a name; the default for anything else.
Examples
import { paceSeconds } from "@johnmorrisdotca/kyuubu";
console.log(paceSeconds("slow"));4What it prints (run when this page was built)