Skip to content

isEmpty

isEmpty(params): boolean

Defined in: objects/is-empty/index.ts:23

Checks if a value is empty.

A value is considered empty if it is: null, undefined, an empty string, an empty array, an empty Map, an empty Set, or a plain object with no own enumerable properties.

IsEmptyParams

The parameters object

boolean

true if the value is empty, false otherwise

isEmpty({ value: {} }); // => true
isEmpty({ value: "" }); // => true
isEmpty({ value: [1] }); // => false

is empty, is blank, has value, null check, empty check