• Returns the string tag representation of the given object

    Parameters

    • object: any

      the object to inspect

    • Optionalnil: null | string

      the default string if the object is nil

    Returns string | undefined | null

    a string tag representation of the given object