Skip to main content
  1. About
  2. Stack Internal
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Draft saved
Draft discarded

Required fields are marked with *

Cancel
3
  • Take a look at typeof A.
    user663031
    –  user663031
    2016-12-25 06:04:39 +00:00
    Commented Dec 25, 2016 at 6:04
  • It is not a mixin, just inheritance, no?
    Paleo
    –  Paleo
    2016-12-25 07:36:36 +00:00
    Commented Dec 25, 2016 at 7:36
  • Thanks to both, please note that A is anything, I don't know what thing can be passed as parameter, the only restriction is that I want it to be a Class. As for the just inheritance, it kind of is! But the difference is that you can add methods and attributes to A just like the old mixin would do
    franleplant
    –  franleplant
    2016-12-25 15:20:48 +00:00
    Commented Dec 25, 2016 at 15:20

lang-js
Morty Proxy This is a proxified and sanitized view of the page, visit original site.