Detecting if an object is a Module

Guy Bedford guybedford at
Tue Sep 16 10:10:07 PDT 2014

We had a discussion back in Feb about a potential Module.isModule function.

Since then, Module has been moved to being created through

So it sounds like a Reflect.isModule or Reflect.Loader.prototype.isModule
may be the way to go.

Which of these would be preferable?

This does affect code being output today through Traceur, so it would be
useful to know if we can implement something along these lines or not.

Thanks for feedback in advance.

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

More information about the es-discuss mailing list