こもろぐ @tenkoma

What We Find Changes Who We Become -- Peter Morville著『アンビエント・ファインダビリティ 』

広告:本ブログで紹介している書籍等商品の紹介でAmazonアソシエイトを利用していることがあります。

Argumentsオブジェクト

function test(){console.log(arguments);}
test('a', 'hoge');
function test2(){console.log(arguments.callee);}
test2('a', 'hoge');

結果

["a", "hoge"]
test2()

calleeプロパティは再帰呼び出し可能な匿名関数を定義するときに使える