I know that in JS, i can use Object.keys(object)
to inspect the various properties of an object, but I am wondering if there is a similar to find out what arguments a JS callback function expects.
For instance, i know the the callback function for request.get
expects error
, response
and body
respectively, but how can i find this out by using something similar to pythons dir
or JS's Object.keys()
I understand that an IDE can help with this, but I am trying to find out if it is possible to do this using just JS