メソッド内からメソッド名を取得
var o = { f : function(){ for( var i in this ){ if( this[i] == arguments.callee ){ console.log(i); } } } }; o.f(); // f
var o = { f : function(){ for( var i in this ){ if( this[i] == arguments.callee ){ console.log(i); } } } }; o.f(); // f