Why in JavaScript do both Object instanceof Function and Function instanceof Object return true?
Object instanceof Function
Function instanceof Object
true
I tried it in Safari WebInspe
Object is a built-in constructor function for objects. It is therefore a function (an instance of Function). Functions are objects in JavaScript, it is therefore an object too (an instance of Object).
Object