@akashrajpurohit/utils
    Preparing search index...

    Function isEmptyObject

    • Checks if an object is empty (has no own properties).

      Parameters

      • obj: Record<string, unknown> = {}

        The object to check.

      Returns boolean

      true if the object is empty, false otherwise.

      isEmptyObject({}) // true
      
      isEmptyObject({ key: 'value' }) // false