Closed mikegowen closed 6 years ago
as you may inadvertently add property names that collide with existing property names in the object's prototype
That's not the problem — the problem is described in the preceding paragraph, namely that in
will tell you your object has properties that are actually in Object.prototype
.
The second paragraph could be clearer. I've simplified it in attached patch.
The paragraphs below had me scratching my head a bit. I'll propose a minor clarification...
to
You get the idea. May need some wordsmithing.
Also, you'd want to adjust this paragraph for obvious reasons, if you went with the above proposed changes: http://eloquentjavascript.net/3rd_edition/06_object.html#p_7p+O+Qr4bN