Inspecting DOM object properties

I like taking a peek at native DOM objects like Element and Node using the console’s dir function.

dir( Element )

Then I crack open prototype see all the base properties and methods that native constructor has.

Element prototype

I discovered Element.contains() this way.