# Hex.isEqual

Checks if two [`Hex.Hex`](/api/Hex/types#hex) values are equal.

## Imports

:::code-group
```ts [Named]
import { Hex } from 'ox'
```

```ts [Entrypoint]
import * as Hex from 'ox/Hex'
```
:::

## Examples

```ts twoslash
import { Hex } from 'ox'

Hex.isEqual('0xdeadbeef', '0xdeadbeef')
// @log: true

Hex.isEqual('0xda', '0xba')
// @log: false
```

## Definition

```ts
function isEqual(
  hexA: Hex,
  hexB: Hex,
): boolean
```

**Source:** [src/core/Hex.ts](https://github.com/wevm/ox/blob/main/src/core/Hex.ts#L1003)

## Parameters

### hexA

* **Type:** `Hex`

The first [`Hex.Hex`](/api/Hex/types#hex) value.

### hexB

* **Type:** `Hex`

The second [`Hex.Hex`](/api/Hex/types#hex) value.

## Return Type

`true` if the two [`Hex.Hex`](/api/Hex/types#hex) values are equal, `false` otherwise.

`boolean`
