Call function with array of arguments

Viewed 33688

Can I call a function with array of arguments in a convenient way in JavaScript?

Example:

var fn = function() {
    console.log(arguments);
}

var args = [1,2,3];

fn(args);

I need arguments to be [1,2,3], just like my array.

2 Answers
Related