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