Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Basically, an object which implements call will always cause `typeof` to return "function".

Are there any implementations which actually do this? In Node:

typeof({ call: function () { } }) --> 'object'

({ call: function () { } })() --> TypeError: object is not a function



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: