06. Mixins
One way of implementing a mixin in ES6 is to view it as a function whose input is a superclass and whose output is a subclass extending that superclass:
Here, we profit from the operand of the extends clause not being a fixed identifier, but an arbitrary expression.
Last updated
Was this helpful?