A fluent interface to apply a list of mixins to a superclass.
class X extends compose(BaseClass).with(A, B, C) {} Copy
class X extends compose(BaseClass).with(A, B, C) {}
The mixins are applied in order to the superclass, so the prototype chain will be: X->C'->B'->A'->BaseClass.
This is purely a convenience function. The above example is equivalent to:
class X extends C(B(A(BaseClass))) {} Copy
class X extends C(B(A(BaseClass))) {}
Optional
A fluent interface to apply a list of mixins to a superclass.
The mixins are applied in order to the superclass, so the prototype chain will be: X->C'->B'->A'->BaseClass.
This is purely a convenience function. The above example is equivalent to: