Use All Function Arguments Without Having To Enumerate Them April 21, 2024 Post a Comment I have functionWithManyArguments(arg1,...,arg15). Can I log all arguments without having to enumerate them all?Solution 1: Yes, You could do something like:-functionfoo(...args) { console.log(...args); } foo(1, 2, "a")Copy...args are rest parameters. Share Post a Comment for "Use All Function Arguments Without Having To Enumerate Them"
Post a Comment for "Use All Function Arguments Without Having To Enumerate Them"