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() { //
Yes you can pass variable no. of arguments to a function. You can use apply to achieve this.
apply
E.g.:
var arr = ["Hi","How","are","you"]; function applyTest(){ var arg = arguments.length; console.log(arg); } applyTest.apply(null,arr);