Function: length - JavaScript | MDN

The length data property of a Function instance indicates the number of parameters expected by the function.