Function strWrapBetween

  • Wraps a string between two other strings.

    Parameters

    • input: string

      The string to be wrapped.

    • left: string

      The string to be added to the left of the input string.

    • right: string

      The string to be added to the right of the input string.

    Returns string

    Example

    strWrapBetween('Hello', '<', '>');;
    //=> '<Hello>'

Generated using TypeDoc