Skip to content

isEmpty

isEmpty(target)

Checks if target object has no enumerable properties.

ts
isEmpty({}); // true
isEmpty({ a: 1 }); // false
ts
pipe({}, isEmpty()); // true
pipe({ a: 1 }, isEmpty()); // false