For example, I'm trying to find all of the methods and properties associated with the events.EventEmitter class. Using a for loop such as
for(i in events.EventEmitter) {
console.log(i);
}
results in a much smaller and incomplete list of properties for the class... However, if I just type into the REPL 'events.EventEmitter.' and hit tab twice, it brings up the much larger, complete list.
Why is this? And where do all of these extra hidden properties come from?