Message from JavaScript discussions

December 2018

— If the object is null, it's not an object? :P


Anyone an idea why

execSync("npm init -y", { cwd: process.cwd() });

causes the error:
npm: command not found?
I surely have npm installed

— Why not use in

— TRGWII whats the problem with the in operator

— 666 members, nice

— I think its no problem, just a matter of style..

— Candy shopping

— Code vanity


— But if you write local code you dont need to do such things 99%

— Just if(obj.prop) {... supercool

— Prop in obj is slower than hasOwnProp... and also checks prototype