In JavaScript, why typeof Function.prototype is “function”, not “object” like other prototype objects?

This seems to be defined in ECMAScript 5:

15.3.4 Properties of the Function Prototype Object

The Function prototype object is itself a Function object (its [[Class]] is “Function”) that, when invoked, accepts any arguments and returns undefined.

Leave a Comment