packages/assert/docs/api/barcode.asserts/functions/assertEan13.md
[**@httpx/assert v0.12.4**](../../README.md) • **Docs**
***
[@httpx/assert v0.12.4](../../README.md) / [barcode.asserts](../README.md) / assertEan13
# Function: assertEan13()
> **assertEan13**(`v`, `msgOrErrorFactory`?): `asserts v is Ean13`
Assert string is not empty (trims the string by default)
## Parameters
• **v**: `unknown`
• **msgOrErrorFactory?**: `MsgOrErrorFactory`
## Returns
`asserts v is Ean13`
## Throws
TypeError
## Defined in
[barcode.asserts.ts:10](https://github.com/belgattitude/httpx/blob/acde85be3548fccd6cc1a311d7f8d4419e2b6ce0/packages/assert/src/barcode.asserts.ts#L10)