December 2018
— Thats airbnbs first choice
const hop = Object .prototype .hasOwnProperty;const has = (obj, key) => hop.call(obj, key);if (has(obj, key)) {
— Cached AND looks good
— Sooo if i use if(obj.key) and the obj is null... its the same error isnt it?
— So its faster then?
— 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() });
Message permanent page
— 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