# emptyArray Source: https://smartassertions.dev/matchers/emptyArray/ Index of every page: https://smartassertions.dev/llms.txt Matcher for an empty array. Matchers are applied through assertObjectMatches, where they narrow the corresponding property type. Type information that already exists in the calling scope is incorporated. ## Usage ```ts import { assertObjectMatches, emptyArray } from "@kensio/smartass"; const value: unknown = { errors: [], }; assertObjectMatches(value, { errors: emptyArray(), }); // value is now narrowed to an object with an empty errors array // { // errors: []; // } ``` ## Source Source file: [`src/assert/array-empty/array-empty.match.ts`](https://github.com/KensioSoftware/smartass/blob/main/src/assert/array-empty/array-empty.match.ts)