Function constants for Identity and No-op

Domenic Denicola d at
Wed Aug 10 15:05:01 UTC 2016

From: es-discuss [mailto:es-discuss-bounces at] On Behalf Of Mark S. Miller

> What's the issue with document.createElement('object')?

It's a callable exotic object.

>> On Wed, Aug 10, 2016 at 7:20 AM, Michał Wadas <mailto:michalwadas at> wrote:
>> Function.isFunction? :D

typeof is what you are looking for.

More information about the es-discuss mailing list