Checks if the provided value is a valid object (not null or an array).

  • Parameters

    • obj: unknown

      The value to validate as an object.

    Returns boolean

    true if the value is a valid object, otherwise false.