I wonder if it is OK to call function.apply with a null first argument. (The use case I have in mind is to pass an array of arguments to a 'regular' function).
For example:
function f(a, b, c) {
...
}
function call_some(fun, arg1, arg2, arg3, ...) {
var args = arguments.splice(1,1);
return fun.apply(null, args); // ....
}
...
call_some(f, 11, 2, true);
Page last modified 04:27, 20 Oct 2007 by Waldo