Skip to main content

isEmptyArray

Detect whether an array is empty.

API

function isEmptyArray(value: any): value is [];

Example

import { isEmptyArray } from "@lilib/utils";

isEmptyArray([]);
// => true

isEmptyArray([""]);
// => false