Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(Papa.unparse(explicitInvalidFields): string);
Papa.unparse({
fields: ["3"],
data: ["3"]
});
Papa.unparse({
fields: ["3"],
data: ["3"]
}, {
quotes: true
});
Papa.SCRIPT_PATH;
Papa.LocalChunkSize;
columns[i].push(rows[j][i]);
}
}
for (let i = 0; i < columns.length; i++) {
let newCol = intern(columns[i]);
columns[i] = newCol.newColumn;
enums.push(newCol.enums);
}
this._onReaderLoad(headings, columns, enums);
}.bind(this),
skipEmptyLines: true
};
} else {
fileSize = fileOrUrl.size
var bigFile = (fileSize > Papa.LocalChunkSize)
var nChunks = Math.floor(fileSize / (Papa.LocalChunkSize*1.0))
var iChunk = 0
var percentDone = 0
config = {
header: false,
dynamicTyping: true,
chunk: function(dat) {
if (headings.length === 0) {
headings = dat.data.shift();
columns = headings.map(function(x) {
return [];
});
}
if (bigFile) {
}
}
for (let i = 0; i < columns.length; i++) {
let newCol = intern(columns[i]);
columns[i] = newCol.newColumn;
enums.push(newCol.enums);
}
this._onReaderLoad(headings, columns, enums);
}.bind(this),
skipEmptyLines: true
};
} else {
fileSize = fileOrUrl.size
var bigFile = (fileSize > Papa.LocalChunkSize)
var nChunks = Math.floor(fileSize / (Papa.LocalChunkSize*1.0))
var iChunk = 0
var percentDone = 0
config = {
header: false,
dynamicTyping: true,
chunk: function(dat) {
if (headings.length === 0) {
headings = dat.data.shift();
columns = headings.map(function(x) {
return [];
});
}
if (bigFile) {
iChunk += 1;