> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Bytes.isEqual

:::info
`Bytes.isEqual` is a re-export of ox's [`Bytes.isEqual`](https://oxlib.sh/api/Bytes/isEqual). Refer to the ox documentation for the full reference.
:::

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

## Imports

```ts
import { Bytes } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { Bytes } from 'viem/utils'

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
```

## Parameters

### bytesA

* **Type:** `Bytes`

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

### bytesB

* **Type:** `Bytes`

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

## Return Type

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

`boolean`
