In javascript if I have some function I can use the arguments object to look at how many parameters were passed in. Is there a way to call a second function and pass those arguments as if they are just normal separate parameters?
something like this:
function f()
{
g(arguments);
}
function g(a, b, c)
{
alert(a+b+c);
}
So in this case if I called f(1,2,3) I would get an alert of 6. Just to be clear, I'm not trying to pass a variable number of arguments, just a way to pass the arguments object as normal separate parameters to other functions (possibly native javascript functions)