Checks if a value is effectively empty. Returns true for nullish values, empty objects, empty strings, NaN, empty arrays, empty sets/maps, empty typed arrays/buffers, and invalid dates.
Optional
The value to check
True if the value is empty
isEmpty([]); // trueisEmpty({ a: 1 }); // false Copy
isEmpty([]); // trueisEmpty({ a: 1 }); // false
Checks if a value is effectively empty. Returns true for nullish values, empty objects, empty strings, NaN, empty arrays, empty sets/maps, empty typed arrays/buffers, and invalid dates.