Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Why is typeof === 'function' considered to be an object? A function is not an object, isn't it? "new myFunc()" will become an object, yes, but a plain function? Commented Aug 5, 2016 at 21:59
  • No, every function is an object in Javascript, regardless of how it was created. You can set properties on them (unless they are frozen), they are instanceof Object, two identical function literals are not strictly equal, they are passed by reference, etc. Commented Oct 29, 2016 at 10:38