code: function(data, mime, name, extension, merges, RTL, sheetname) {
        var format = extension.slice(1);
        data = this.getRawData(data, extension, name, merges, RTL, sheetname);
  
        if (_isMobile && (format === _FORMAT.CSV || format === _FORMAT.TXT)) {
          var dataURI = "data:" + mime + ";" + this.charset + "," + data;
          this.downloadDataURI(dataURI, name, extension);
        } else {
          // TODO: error and fallback when `saveAs` not available
          saveAs(new Blob([data], { type: mime + ";" + this.charset }), name + extension, true);
        }
      }
docs: Exports and downloads the file
  @memberof TableExport.prototype
  @param data {String}
  @param mime {String} mime type
  @param name {String} filename
  @param extension {String} file extension
  @param merges {Object[]}
  @param RTL {Boolean}