# assertArrayEmpty Source: https://smartassertions.dev/assertions/assertArrayEmpty/ Index of every page: https://smartassertions.dev/llms.txt Assert that an array has no elements, with type-narrowing. The failure message names the elements that are present, which is usually the diagnostic the assertion exists to produce. ## Usage ```ts import { assertArrayEmpty } from "@kensio/smartass"; const value: unknown = []; assertArrayEmpty(value); // value is now narrowed to an empty array ``` ## Source Source file: [`src/assert/array-empty/array-empty.assert.ts`](https://github.com/KensioSoftware/smartass/blob/main/src/assert/array-empty/array-empty.assert.ts)