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

    Parameters

    • value: undefined | string | string[]

      Value to be returned

    • Optional defaultValue: string

      Default value if value does not resolve to true

    Returns string | undefined

    value if it resolves to true, otherwise defaultValue