I have a function:
fs.readFile = function(filename, callback) { // implementation code. };
Sometime later I want to see the signature of th
I am not sure what you want but try looking at the console log of this fiddle, it prints entire function definition. I am looking at chrome console.log output.
var fs = fs || {}; fs.readFile = function(filename, callback) { alert(1); }; console.log(fs.readFile);
DEMO http://jsfiddle.net/K7DMA/