Skip to Content
ArrayisEmpty

isEmpty

Return whether an array is empty or not

Import

import { isEmpty } from '@fullstacksjs/toolbox';

Signature

function isEmpty(x: unknown[]): boolean {}

Examples

isEmpty([]) // true isEmpty([1]) // false isEmpty([undefined]) // false isEmpty([null]) // false isEmpty([,]) // false isEmpty([, null]) // false isEmpty([, undefined]) // false
Last updated on