Hey there, I have received JSON object data via AJAX. Take a look at it below:
var history= [
{ date: '12/1/2011', open: 3, high: 5,low: 2, close:4 },
{ date: '12/2/2011', open: 4, high: 6,low: 3, close:5 },
{ date: '12/3/2011', open: 3, high: 5,low: 2, close:3 }
];
I am interested in mapping only the stock data to an array list as shown below.
[
[3,5,2,4],
[4,6,3,5],
[3,5,2,3]
]
If possible, I would prefer to use the map method (data.map(function(a)). Any helpful advice or guidance on this matter would be greatly appreciated. Thank you!