I have the following arrays:
var dates = new Array(); var answers = new Array();
After filling, they will have the same length. I need an array that combines the same array index values. For instance:
var pairedArray = new Array();
eg.
data: [ [Date.UTC(2010, 0, 1), 29.9], [Date.UTC(2010, 2, 1), 71.5], [Date.UTC(2010, 3, 1), 106.4] ]
How is this possible, given that I have two arrays of the same length, answers and dates that are already filled?
source share