Sha256: a62019d91610d2c9c440906446eaac56d35cd541aff927690b2dc6c25adebf74
Contents?: true
Size: 722 Bytes
Versions: 14
Compression:
Stored size: 722 Bytes
Contents
/** @private */ var Map = root.Map || (function () { function Map() { this._keys = []; this._values = []; } Map.prototype.get = function (key) { var i = this._keys.indexOf(key); return i !== -1 ? this._values[i] : undefined; }; Map.prototype.set = function (key, value) { var i = this._keys.indexOf(key); i !== -1 && (this._values[i] = value); this._values[this._keys.push(key) - 1] = value; }; Map.prototype.forEach = function (callback, thisArg) { for (var i = 0, len = this._keys.length; i < len; i++) { callback.call(thisArg, this._values[i], this._keys[i]); } }; return Map; }());
Version data entries
14 entries across 7 versions & 1 rubygems