code: function str2Int36(str) {
      const codes = [];
      for (let i = 0; i < str.length; i++) {
          let code = decodeCharCode2Int36(str.charCodeAt(i));
          if (code !== null) {
              codes.push(code);
          }
      }
      return codes.reverse().reduce((r, v, i) => {
          return r + v * Math.pow(36, i);
      }, 0);
  }
docs: converts alphanum string of [0-9A-Z] into integer
  @param {string} str
  @return {number}