isEmpty()
isEmpty(
value):boolean
Defined in: utils/object/isEmpty.ts:19
Checks if a value is an empty object, array, string, or falsy value.
Parameters
value
unknown
The value to check.
Returns
boolean
true if the value is empty or falsy, otherwise false.
Example
tsx
isEmpty({}); // true
isEmpty([]); // true
isEmpty(''); // true
isEmpty(null); // true
isEmpty(0); // false
isEmpty(true); // false