An Object is not a Hash | Guillermo Rauch's Devthought

If the user wanted to, for example, name his blog post “constructor” our program would behave incorrectly. We therefore change our code to leverage hasOwnProperty, which will allows to check whether the property has been set by us.

Top of Page