Reference / @getenginex/sdk/extension / fingerprint
fingerprint()
fingerprint(
input):string|undefined
Stable serialization of the input: object keys sorted, undefined omitted, arrays in order. undefined (a method with no input) has its own fingerprint. A value that does not serialize (File, Blob, function, cycle, bigint) returns undefined, as do Date, Map, Set and any class instance (only plain objects and arrays count): the input has no fingerprint and the transport generates a key per call.
Parameters
input
unknown
Returns
string | undefined
Example
ts
fingerprint({ b: 1, a: 2 }) === fingerprint({ a: 2, b: 1 }) // trueThrows
Never throws for a non-serializable input: it returns undefined.