Add Reflect.isConstructor and Reflect.isCallable?

Tom Schuster tom at
Tue Dec 16 13:05:03 PST 2014


right now there is no way in normal JS code to replicate the IsConstructor
check defined in 7.2.4.
IsCallable can be done with "typeof == function". I think this might be
useful in some cases and is trivial to implement.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list