Here is what I\'d like to do:
function a() { // ... } function b() { // Some magic, return a new object. } var c = b(); c instanceof b // -> true c
The only way to get instanceof to work is to use the new keyword. instanceof exploits ____proto____ which is established by new.