• Returns the string 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 representation of the given object