Code coverage report for cjs/util/FastMap.js

Statements: 100% (20 / 20)      Branches: 100% (4 / 4)      Functions: 100% (7 / 7)      Lines: 100% (20 / 20)      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 301 1 36   1 137 137   1 112 112   1 260   1 25 25 81 66       1 1   1   1  
var FastMap = (function () {
    function FastMap() {
        this.values = {};
    }
    FastMap.prototype.delete = function (key) {
        this.values[key] = null;
        return true;
    };
    FastMap.prototype.set = function (key, value) {
        this.values[key] = value;
        return this;
    };
    FastMap.prototype.get = function (key) {
        return this.values[key];
    };
    FastMap.prototype.forEach = function (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 () {
        this.values = {};
    };
    return FastMap;
})();
exports.FastMap = FastMap;
//# sourceMappingURL=FastMap.js.map