@rvoh/dream
    Preparing search index...

    Function isEmpty

    • Checks if an array, object, Set, or Map is empty.

      Examples: isEmpty([]) // true isEmpty({}) // true isEmpty(new Map()) // true isEmpty(new Set()) // true isEmpty(['hello']) // false isEmpty({ hello: 'world' }) // false

      Parameters

      • value: Record<string, unknown> | unknown[] | Set<unknown> | Map<unknown, unknown>

        The value to check for emptiness

      Returns boolean

      True if the value is empty, false otherwise