Message from JavaScript discussions

December 2018

— Which is so good.. their explanation is:

— 

Why? These methods may be shadowed by properties on the object in question - consider { hasOwnProperty: false } - or, the object may be a null object (Object.create(null)).

— Object.key -> returns undefined if key exists but is undefined, thus false

— Idon geddit

— Also true

— This just checks if the object has at least one key

— Yeah, thats my thougt too, why do they took such core functions into the game?

— Mehhh

— Just abstract it

— Yeah i did a static example

— And you can do the right thing without having your code look like garbage

— True