I have Array of Array in JavaScript as follows:
myarr = [Array(3), Array(3)]
It has values:
[
['ID', 'Name', 'BloodGroup'],
[1, 'Jim', 'B+'],
[2, 'Jane', 'A+']
]
I want array of object as:
[{'ID':1,'Name':'Jim', 'BloodGroup': 'B+'}, ....]
Is there any way to achieve this using plain js or jQuery without using for loop, as data I get might be big, and server side is not an option.