147
rated 0 times
[
148]
[
1]
/ answers: 1 / hits: 27590
/ 12 Years ago, thu, march 22, 2012, 12:00:00
Very often, I find myself using a callback function and I don't have its documentation handy, and it would be nice to see all of the arguments that are meant to be passed to that callback function.
// callback is a function that I don't know the args for...
// and lets say it was defined to be used like: callback(name, number, value)
something.doSomething( callback );
How can I determine what args its passing into that?
Note: looking at the source code can be unhelpful when the code itself is obfuscated and minified (as many js frameworks are)
More From » callback