Currently surround allows only 1 wrapper parameter. Allowing an optional 2nd wrapper parameter would make it useful for enclosing a string with HTML tags or parentheses and brackets.
Here is the current surround implementation:
surround: function(str, wrapper) {
return [wrapper, str, wrapper].join('');
}
May I suggest we upgrade it to this:
surround: function(str, lWrapper, rWrapper) {
return [lWrapper, str, rWrapper || lWrapper].join('');
}
Just throwing this out there because I thought it can be useful. If there is no objection or obvious flaw with the suggested change, I will put in a PR by tomorrow.