PapaParse has an asynch callback function for its API. I was wondering how I can convert it to a promise. For eg:
Papa.parse(fileInput.files[0], {
complete: function(results) {
console.log(results);
}
});
Any help would be appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…