実引数の数はarguments.lengthで調べる。
arguments.length
function 関数(仮引数1) { console.log(arguments.length) // 実引数の数 } 関数(1, 10, 100) // 3