Skip to content
Node.js Sounds Complicated? This Article Makes It Click

Edit It: Check If the Nullable profile Object Has Its Own firstName Property

Home>Object.hasOwn() Method in JavaScript>Edit It: Check If the Nullable profile Object Has Its Own firstName Property

Edit It: Check If the Nullable profile Object Has Its Own firstName Property

This code shows that the Object.prototype.hasOwnProperty() method does not work with nullable objects.

See it on StackBlitz