I have a function that can accept any number of arguments...
const getSearchFields = () => { const joined = arguments.join(\'/\'); };
arguments is not really an array.
try this:
var args = [].splice.call(arguments,0); var argsString = args.join('/');