Javascript creating array of arrays runtime
<p>How to best create this in runtime? </p>

<pre><code>var fields = ["abc", "def", "somepar", "otherpar"];
var toSet = "foo";
// How to genereate this variable from code
var valuepairs = [["Progress", progress], [fields[0], toSet], [fields[1], toSet], [fields[2], toSet]]; // [fields[n], toSet]
</code></pre>

<p>Regards</p>

<p>Larsi</p>
