logical.canonicalfunctionno test imports itfunction canonical(value: unknown): stringA text of a value that does not depend on the order its properties were made in.
The canonical text of a value: its properties sorted by name, recursively, and its arrays in their order (the order of RFC 8785 section 3.2.3 for the keys), with a property whose value is undefined left out. Two events with one id are one event where their canonical texts are the same, and a conflict where they are not (0037-planning FR-017).
import { canonical } from "./canonical.ts";
canonical({ b: 1, a: [2, { d: 4, c: 3 }] }); // '{"a":[2,{"c":3,"d":4}],"b":1}'logical.canonicalfunctionno test imports itfunction canonical(value: unknown): stringA text of a value that does not depend on the order its properties were made in.
canonicalfunctionno test imports itfunction canonical(value: unknown): stringA text of a value that does not depend on the order its properties were made in.