Answer the question
In order to leave comments, you need to log in
How to build a javascript function call tree?
I have a file with javascript code (that is, each time a new file and I don’t have the code in advance) and I need to get a sequential list of function calls from this file.
For example, I have this file:
function one() {
//Code
}
function two() {
//Code
one();
}
function three() {
//Code
two();
one();
}
three();
{
"three()":
[
{"two()": "one()"},
"one()"
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question