# matchesDeviceCodeTail

<!-- https://uncage.vercel.app/docs/api/react/functions/matchesdevicecodetail/ -->

```ts
function matchesDeviceCodeTail(code, typed): boolean;
```

Defined in: react/src/hooks.ts:454

Whether `typed` (case, spaces and dashes ignored) is the last 4 characters of `code`.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `code` | `string` |
| `typed` | `string` |

## Returns

`boolean`
