function GetRelationShips(){ var f=arguments.callee; RunEndFetch({fn:f}) } function RunEndFetch(obj){ console.log(obj.fn.name) // GetRelationShips }