# Code coverage report for RxJS/dist/cjs/operators/zip-static.js

## Statements: 100% (15 / 15) Branches: 83.33% (5 / 6) Functions: 100% (2 / 2) Lines: 100% (14 / 14) Ignored: none

All files » RxJS/dist/cjs/operators/ » zip-static.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26

    1
    1

    1

    1

    1

    1

    1
    43
    100

    43
    43
    9

    43

    1'use strict';

    exports.__esModule = true;
    exports['default'] = zip;

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

    var _observablesArrayObservable = require('../observables/ArrayObservable');

    var _observablesArrayObservable2 = _interopRequireDefault(_observablesArrayObservable);

    var _zipSupport = require('./zip-support');

    function zip() {
        for (var _len = arguments.length, observables = Array(_len), _key = 0; _key < _len; _key++) {
            observables[_key] = arguments[_key];
        }

        var project = observables[observables.length - 1];
        if (typeof project === 'function') {
            observables.pop();
        }
        return new _observablesArrayObservable2['default'](observables).lift(new _zipSupport.ZipOperator(project));
    }

    module.exports = exports['default'];