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() { //
With ES6 you can use rest parameters for varagrs. This takes the argument list and converts it to an array.
varagrs
function logArgs(...args) { console.log(args.length) for(let arg of args) { console.log(arg) } }