I have a function that takes all the data from a specific table name and export it to the CSV files. the javascript code for exporting into excel is:-
(function (