Skip to content

isEmpty

Object.isEmpty(target)

Checks if target object has no enumerable properties.

Example

ts
import { Object } from "@monstermann/object";

Object.isEmpty({}); // true
Object.isEmpty({ a: 1 }); // false
ts
import { Object } from "@monstermann/object";

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