Determine if a value is Callable/Constructible

Domenic Denicola d at
Mon Mar 30 17:44:10 UTC 2015

From: Axel Rauschmayer [mailto:axel at] 

> As in “makes sense to call”. In the past, `typeof x === 'function'” was an adequate test for checking whether it makes sense to call `x`.

I tried to explain explicitly why I don't think this is true.

> Since ES6, it isn’t, anymore.

I disagree. The situation has not changed at all.

More information about the es-discuss mailing list