Is it possible to get a list of the user defined functions in javascript?
I'm currently using this but it returns functions which aren't user defined:
var functionNames = [];
for (var f in window) if (window.hasOwnProperty(f) && typeof window[f] === 'function')
{
functionNames.push(f);
}