Say I have an array of arrays(key/value) that are dynamically generated:
var parameters = [ ['Key1','value1'],['key2','value2'],['key3','value3']];
and I have a function that accepts a dynamic amount of arguments via the arguments object
function somefunction(){
var args = [];
var len = arguments.length
for(var i=0;i<len;i++)
{
args[i] = arguments[i];
}
How do I call the function with parameters variable so that each item in the array is considered an argument example:
somefunction(['Key1','value1'],['key2','value2'],['key3','value3']);
instead of:
somefunction([['Key1','value1'],['key2','value2'],['key3','value3']]);
which is what
somefunction(parameters);
sends