# endsWith

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

Return whether `bytes` ends with `suffix`.

```ds title="endsWith"
export function endsWith(bytes: &'a readonly [uint8], suffix: &'b readonly [uint8]): boolean
```

[language/library/src/bytes/bytes.ds:188:190](https://github.com/destack-sh/destack/blob/main/language/library/src/bytes/bytes.ds#L188-L190)
