How can I access a function name from inside that function?
// parasitic inheritance var ns.parent.child = function() { var parent = new ns.parent(); p
as part as ECMAScript 6 you can use Function.name method
ECMAScript 6
function doSomething() {} alert(doSomething.name); // alerts "doSomething"