Function
Static Public Summary | ||
public |
Create a subclass of a constructor and mix 1 or many mixin into it. |
|
public |
Mixes in this class's methods into an existing object. |
Static Public
public mix(SuperClass: function, mixins: ...function): function source
import {mix} from 'es6-mixin/src/lib/index.js'
Create a subclass of a constructor and mix 1 or many mixin into it.
Test:
public mixin(target: object, MixedIn: function, args: ...*): object source
import {mixin} from 'es6-mixin/src/lib/index.js'
Mixes in this class's methods into an existing object.