SyntaxFix
Write A Post
Hire A Developer
Questions
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) } }