I have a function that accepts multiple arguments (only one is defined in the function though)
var getSearchFields = function(method) {
console.log(arguments); // this prints them out nicely into the console
var args = arguments;
var argsString = args.join('/'); // I expect 'arg1/arg2/arg3', instead I get 'args.join is not a function'
}
I just want a string of all the arguments being sent to the function. I keep getting this error:
args.join is not a function
Can someone please tell me what I'm doing wrong?
Thanks