I'm trying to convert an array of arrays that is requested from a http service. I have the following code below:
This is the array from the http service that will have a number of arrays:
[object Array] > [0] > MAKE: "toshiba", MODEL: "h2000" ..[n]
This needs to be converted to a multidimensional array like this:
[{MAKE:"toshiba"},{MODEL:"h2000"}, {MAKE:"HP"},{MODEL:""}];
I have looked into a for loop to do this but having no luck: