I have a javascript file in which I have defined a custom function which take some input object and perform some action.
This file is called from many files.
Now I want to priint all the params name used in this function.
May be I need to read whole file as a string and print the desired output
function customFunction(param){
if(param.isOK == yes){}
if(param.hasMenu == no){}
..
..
..
if(param.cancelText == "cancel"){}
}
I want to write a program which reads this file and output all the params name. e.g.
isOK | hasMenu | ...... | CancelText ..