Novaleaf / xlib

Your isomorphic toolbox
MIT License
20 stars 1 forks source link

add reflection.getFunctionName() #7

Open jasonswearingen opened 5 years ago

jasonswearingen commented 5 years ago

something like:

/** get the name of the current function, and all functions under it in the call stack */
function getFunctionName(
/** where to start on the call stack.   default is 0 (the immediate caller) */
stackDepth=0
): { name:  parameters:[] target:string} []