function call(){
let caller = arguments.callee.caller
console.log(caller) //counter()
}
function counter(){
call()
}
counter()
above, the parent function can be obtained through arguments.callee.caller, but it is disabled in strict mode. Is there any alternative?
A lot of search failed to find, call for help wow:: > _ <::