function tryDecode$1(str, decode) {
  try {
    return decode(str);
  } catch (e) {
    return str;
  }
}
Try decoding a string using a decoding function.

@param {string} str
@param {function} decode
@private