# equal

`import { equal } from "destack:bytes";`

Return whether two byte sequences are equal.

```ds title="equal"
export function equal(left: &'a readonly [uint8], right: &'b readonly [uint8]): boolean
```

[language/library/src/bytes/bytes.ds:168:170](https://github.com/destack-sh/destack/blob/main/language/library/src/bytes/bytes.ds#L168-L170)
