Hi, I'm not sure if this is possible but I was looking for an example of how to wrap this in a synchronous function, what I mean is I want to do something like
let readCSV = (filename) => {
let result = [];
// use the library to read all the data in filename and put it in result
return result;
};
// then somewhere else in my codebase
const readCSV = require('readCSV.json');
// read some file, I want it not to move to the next line until everithing is done and I have the data
let myArray = readCSV('my-data.csv');
filteredData = _.filter(myData, row => row.id === row.oldId)
Documentation Is:
Please Explain in Detail...
Hi, I'm not sure if this is possible but I was looking for an example of how to wrap this in a synchronous function, what I mean is I want to do something like
Your Proposal for Changes