I was looking for a way to get name of function passing in parameter
console.clear();
class A{
test(){
}
testCall(fnc:Function){
console.log(fnc.name); // i want it display test here not empty
console.log(fnc);
}
}
var a=new A();
a.testCall(a.test);
you can check this in jsbin http://jsbin.com/loluhu/edit?js,console