Reference · Shared Awase table
undoAtTablefunction
The table with its last pair given back: the undo a table agrees to. Null with nothing to give back.
Import it
import { undoAtTable } from "@johnmorrisdotca/jarajara/table";
Definition
function undoAtTable(table: AwaseTable): AwaseTable | null
Parameters
| Name | Type | Description |
|---|---|---|
table | AwaseTable | The shared native table and its recorded pair takes. |
Returns
AwaseTable | null
The table with its last pair given back: the undo a table agrees to. null with nothing to give back.
Examples
import { generateAwase } from "@johnmorrisdotca/jarajara/awase";
import { startTable, undoAtTable } from "@johnmorrisdotca/jarajara/table";
const deal = generateAwase(4,"easy",2026);
const table = startTable(deal,[{name:"Seat 1"},{name:"Seat 2"}]);
console.log(undoAtTable(table));nullWhat it prints (run when this page was built)