What Every JavaScript Developer Must Know about the has Property

The hasOwnProperty() method returns a boolean indicating whether the object on which it is called has the specified property as its own property (as opposed to inheriting it).

Checkout this video:

Scroll to Top