List of global user defined functions in JavaScript? -


Is it possible to get a list of user defined functions in JavaScript?

I currently use this, but it does not allow users to define:

  var functionNames = []; (Var in the window f) {if (window.hasOwnProperty (f) & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp ; Amp; amp;; f; [f] === 'function') {functionNames.push (f); }}  

I assume that you want to filter the basic tasks in Firefox , function.trustring () function returns to the body, which will be for the original functions:

  function addEventListener () {[native code]}  

You can match the pattern to / \ [native code \] / in your loop and skip the tasks that match.


Comments