packages/ag-grid-docs/src/example-excel-import/excel-import/example.js
// read the raw data and convert it to a XLSX workbook
read the raw data and convert it to a XLSX workbook
read the raw data and convert it to a XLSX workbook
function convertDataToWorkbook(data) {
    var data = new Uint8Array(data);
    var arr = new Array();
    for (var i = 0; i !== data.length; ++i) {
        arr[i] = String.fromCharCode(data[i]);
    }
    var bstr = arr.join("");
    return XLSX.read(bstr, {type: "binary"});
}
function convertDataToWorkbook ( data ) { var data = new Uint8Array ( data ) ; var arr = new Array ( ) ; for ( var i = 0 ; i !== data . length ; ++ i ) { arr [ i ] = String . fromCharCode ( data [ i ] ) ; } var bstr = arr . join ( "" ) ; return XLSX . read ( bstr , { type : "binary" } ) ; }
read the raw data and convert it to a XLSX workbook
read the raw data and convert it to a XLSX workbook
/* convert data to binary string */