Nodejs Function Mixin mixin()

Here you can find the source of mixin()

Method Source Code

Function.prototype.mixin = function() {
    var mixins = Array.toArray(arguments);
    mixins.forEach(function(mixin) {
        Object.extend(this.prototype, mixin.prototype || mixin);
    }, this);/*from w  w  w  . j a v a  2 s.c  o  m*/
};