# Code coverage report for RxJS/dist/cjs/util/applyMixins.js

## Statements: 100% (10 / 10) Branches: 100% (0 / 0) Functions: 100% (1 / 1) Lines: 100% (10 / 10) Ignored: none

All files » RxJS/dist/cjs/util/ » applyMixins.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17

    1
    1

    1
    2
    2
    2
    2
    6
    6

    1"use strict";

    exports.__esModule = true;
    exports["default"] = applyMixins;

    function applyMixins(derivedCtor, baseCtors) {
        for (var i = 0, len = baseCtors.length; i < len; i++) {
            var baseCtor = baseCtors[i];
            var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype);
            for (var j = 0, len2 = propertyKeys.length; j < len2; j++) {
                var _name = propertyKeys[j];
                derivedCtor.prototype[_name] = baseCtor.prototype[_name];
            }
        }
    }

    module.exports = exports["default"];