Skip to main content

canonicalizeArgs

@retinue/monorepo


@retinue/monorepo / backend/src / canonicalizeArgs

Function: canonicalizeArgs()

canonicalizeArgs(value): string

Defined in: backend/src/idempotency/index.ts:31

A stable string for a value.

Object keys are sorted, because {a, b} and {b, a} are the same arguments and must not produce two keys — the whole point of a key is that an identical call collides with itself.

Parameters​

value​

unknown

Returns​

string