• Returns the name of object if it's an Error. Otherwise, returns empty string.

    Parameters

    • object: any

    Returns string