isEmpty
Checks if a value is empty. Returns `true` for `null`, `undefined`, empty arrays, empty objects, or empty strings.> isEmpty(value: unknown): boolean
- value: The value to check.
- Returns: `true` if the value is considered empty, `false` otherwise.
Example
import { isEmpty } from "@explita/daily-toolset";
isEmpty(""); // true
isEmpty([]); // true
isEmpty({}); // true
isEmpty("Hello world"); // false