• Returns a formatted string representation of a value, enclosed in square brackets.

    Parameters

    • value: undefined | string

      The value to format.

    • config: undefined | FormatParameters

      An optional configuration object.

    Returns string

    The formatted string representation of the value.