• This function displays a specified string with an optional default value.

    Returns

    value if it resolves to true, otherwise defaultValue

    Parameters

    • value: undefined | string | string[]

      Value to be returned

    • Optional defaultValue: string

      Default value if value does not resolve to true

    Returns string | undefined