Is it possible to send a variable number of arguments to a JavaScript function, from an array?
var arr = [\'a\',\'b\',\'c\'] var func = function() { //
The apply function takes two arguments; the object this will be binded to, and the arguments, represented with an array.
apply
this
some_func = function (a, b) { return b } some_func.apply(obj, ["arguments", "are", "here"]) // "are"