December 2018
— If the object is null, it's not an object? :P
Anyone an idea whyexecSync("npm init -y", { cwd: process.cwd() });causes the error:npm: command not found? I surely have npm installed
execSync("npm init -y", { cwd: process.cwd() });
— Why not use in
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
— Object.hasOwnProperty.call(...
— 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