Code coverage report for cjs/util/FastMap.js

Statements: 92.59% (25 / 27)      Branches: 83.33% (5 / 6)      Functions: 87.5% (7 / 8)      Lines: 96% (24 / 25)      Ignored: none     

All files » cjs/util/ » FastMap.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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49    1   28   1 1 28   28 28         1 129 129     1 94 94     1 237     1 23 23 74 61         1       1     1 1  
"use strict";
 
exports.__esModule = true;
 
function _classCallCheck(instance, Constructor) { Iif (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
 
var FastMap = (function () {
    function FastMap() {
        _classCallCheck(this, FastMap);
 
        this.size = 0;
        this._values = {};
    }
 
    //# sourceMappingURL=FastMap.js.map
 
    FastMap.prototype["delete"] = function _delete(key) {
        this._values[key] = null;
        return true;
    };
 
    FastMap.prototype.set = function set(key, value) {
        this._values[key] = value;
        return this;
    };
 
    FastMap.prototype.get = function get(key) {
        return this._values[key];
    };
 
    FastMap.prototype.forEach = function forEach(cb, thisArg) {
        var values = this._values;
        for (var key in values) {
            if (values.hasOwnProperty(key) && values[key] !== null) {
                cb.call(thisArg, values[key], key);
            }
        }
    };
 
    FastMap.prototype.clear = function clear() {
        this._values = {};
    };
 
    return FastMap;
})();
 
exports["default"] = FastMap;
module.exports = exports["default"];
//# sourceMappingURL=FastMap.js.map