Rest operator supports 0 or more args. Btw it's don't count as existing argument.
As i know, at this moment no ways to detect it other than toString().
function f(a, ...args) {return args;} // length count only real arguments
f.length // 1
f.toString() // "function f(a, ...args) {return args;}"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Rest operator supports 0 or more args. Btw it's don't count as existing argument.
As i know, at this moment no ways to detect it other than toString().