I have a JavaScript array that can be built using this code
var Test = [];
Test.push([3, 2]);
Test.push([5, 7]);
Test.push([8, 1]);
Test.push([4, 10]);
What I need to do is change the first value in each item to be in order from 0, the result should look like this:
[0, 2]
[1, 7]
[2, 1]
[3, 10]
I will also accept a jQuery answer.