Reference · Rules, solvers and generation
compareEdgesfunction
Edges in the one order a layout writes them: by their first cell, then their second.
Import it
import { compareEdges } from "@johnmorrisdotca/tsunagi";
Definition
function compareEdges(x: string, y: string): number
Parameters
| Name | Type | Description |
|---|---|---|
x | string | The horizontal point, edge-code or coordinate value specified by this signature. |
y | string | The vertical point, edge-code or coordinate value specified by this signature. |
Returns
number
Edges in the one order a layout writes them: by their first cell, then their second.
Examples
import { compareEdges } from "@johnmorrisdotca/tsunagi";
console.log(compareEdges("1-2","1-5"));-3What it prints (run when this page was built)