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

## Statements: 100% (9 / 9) Branches: 78.95% (15 / 19) Functions: 100% (0 / 0) Lines: 100% (9 / 9) Ignored: none

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

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

    1
    1

    1
    1
    1
    1
    1
    1
    1
     'use strict';

    exports.__esModule = true;
    var objectTypes = {
        'boolean': false,
        'function': true,
        'object': true,
        'number': false,
        'string': false,
        'undefined': false
    };
    var root = objectTypes[typeof self] && self || objectTypes[typeof window] && window;
    exports.root = root;
    var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
    var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;
    var freeGlobal = objectTypes[typeof global] && global;
    Eif (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {
        exports.root = root = freeGlobal;
    }