---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/extension/functions/fingerprint.md
---
[Reference](../../../../index.md) / [@getenginex/sdk/extension](../index.md) / 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 }) // true
```

## Throws

Never throws for a non-serializable input: it returns `undefined`.
