Reference · Pipes, rules and solving
SIDESconstant
The four sides by number, 0 (north) to 3 (west): the bit of side i is 1 << i.
Import it
import { SIDES } from "@johnmorrisdotca/suido";
Definition
const SIDES: readonly [1, 2, 4, 8] = [NORTH, EAST, SOUTH, WEST] as const
Examples
import { SIDES } from "@johnmorrisdotca/suido";
console.log(SIDES);[ 1, 2, 4, 8 ]What it prints (run when this page was built)