I am trying to convert a JavaScript object set in to CSV format
You can get the idea about my Javascript object, if you put it in online JSON parser http://json.pars
Use papaparse library to convert JSON to CSV and Vice Versa. Refer to this link - https://www.papaparse.com/