実引数の数はarguments.length

実引数の数はarguments.lengthで調べる。

function 関数(仮引数1) {
  console.log(arguments.length) // 実引数の数
}

関数(1, 10, 100) // 3