subclassof

P T Withington ptw at pobox.com
Mon Jan 18 07:32:06 PST 2010


In the various classes-as-sugar proposals, is there a way to test if one class is a subclass of another?  Is it as simple as:

  classa.prototype instanceof classb

?

Should there be a `subclassof` operator?




More information about the es-discuss mailing list