Function isEmptyObject

  • Returns whether the payload is a an empty object (excluding special classes or objects with other prototypes)

    Parameters

    • payload: unknown

    Returns payload is { [key: string]: never; [key: number]: never; [key: symbol]: never }