Checks if a value is considered empty. Supports strings, arrays, objects, maps, and sets.
The value to check.
true if the value is empty, false otherwise.
true
false
isEmpty(''); // trueisEmpty([]); // trueisEmpty({}); // trueisEmpty([1]); // false Copy
isEmpty(''); // trueisEmpty([]); // trueisEmpty({}); // trueisEmpty([1]); // false
Checks if a value is considered empty. Supports strings, arrays, objects, maps, and sets.