---
url: /api/kiln/functions/diffSnapshots.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / diffSnapshots

# Function: diffSnapshots()

```ts
function diffSnapshots(
   a, 
   b, 
   epsilon?
): SnapshotDiff;
```

Field-level diff. Numbers within `epsilon` (default 0) count as equal.

## Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `a` | [`Snapshot`](../interfaces/Snapshot.md) | `undefined` |
| `b` | [`Snapshot`](../interfaces/Snapshot.md) | `undefined` |
| `epsilon` | `number` | `0` |

## Returns

[`SnapshotDiff`](../interfaces/SnapshotDiff.md)
