0

The structure will look like followings:

REP name,ID,Doctor name,speciality,Hospital,city
Abd A,3-1KPLCI,ASHWA,DERMATOLOGIST,ZULEKHA,SHARJAH
Abd A,3-1MSZMC,VINOD,INTERNIST,ZULEKHA,SHARJAH
Abd A,3-2MTAJU,ALI N,EMERGENCY,AL GARHO,NONE
Abd A,3-2S1WOT,ABDUL,GENERAL PRACTITIONER,CITY HOS,BUR DUBAI

I wanted to get 2D array. Like this

[
["Abd A","3-1KPLCI","ASHWA","DERMATOLOGIST"],
["Abd A","3-1MSZMC","VINOD","INTERNIST"],
[...................]
]

How can be done with JavaScript?

Update: Actually I do not read csv file. I will copy csv data manually in the script. But JavaScript will create 2D array so that I can perform next process.

0 Answers0