// js function
const generater = (csvFilePath) => {
console.log(csvFilePath);
Papa.parse(csvFilePath, {
delimiter: ',',
dynamicTyping: true,
encoding: 'UTF-8',
complete: function(results, file) {
console.log(results);
console.log(file);
}
});
};
// csv file content "demo.csv"
Column 1,Column 2,Column 3,Column 4
1-1,1-2,1-3,1-4
2-1,2-2,2-3,2-4
3-1,3-2,3-3,3-4
4,5,6,7
// the function is logging an empty array, can any one help with that?