I just installed sleep
Node.js module and have implemented in my code. When I try the following code console.log(sleep.usleep.toString());
the result shows [native code]
instead of the actual code inside usleep()
, but when I try the same thing on my functions, it includes all the code in the return value of .toString()
:
function a() {
//code
}
console.log(a.toString());
How come .toString()
doesn't reveal the code inside sleep.usleep()
?