canonical
function canonical<T>(value): T;Defined in: src/internal/json.ts:40
A JSON-equivalent copy of value with object keys sorted recursively, so two structurally equal
values serialise identically. JSON.stringify semantics apply first (undefined members are
dropped, toJSON is honoured, non-finite numbers become null).
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value |
T |
Returns
Section titled “Returns”T