# Bytes.isEqual

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

## Imports

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

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

## Examples

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

Bytes.isEqual(Bytes.from([1]), Bytes.from([1]))
// @log: true

Bytes.isEqual(Bytes.from([1]), Bytes.from([2]))
// @log: false
```

## Definition

```ts
function isEqual(
  bytesA: Bytes,
  bytesB: Bytes,
): boolean
```

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

## Parameters

### bytesA

* **Type:** `Bytes`

First [`Bytes.Bytes`](/api/Bytes/types#bytes) value.

### bytesB

* **Type:** `Bytes`

Second [`Bytes.Bytes`](/api/Bytes/types#bytes) value.

## Return Type

`true` if the two values are equal, otherwise `false`.

`boolean`
