-
Notifications
You must be signed in to change notification settings - Fork 0
/
min.js
2 lines (2 loc) · 991 Bytes
/
min.js
1
2
/*! (c) Andrea Giammarchi - ISC */
var self=this||{};try{self.Map=Map}catch(t){!function(n,i){"use strict";var t=i(s.prototype,{size:{configurable:!0,get:function(){return this._k.length}}});return t.clear=function(){var t=this._k.length;this._k.splice(0,t),this._v.splice(0,t)},t.delete=function(t){var i=r(this,t);return i&&(this._k.splice(n,1),this._v.splice(n,1)),i},t.entries=function(){return this._k.map(h,this._v)},t.forEach=function(n,s){this._k.forEach(function(t,i){n.call(s,this._v[i],t,this)},this)},t.get=function(t){return r(this,t)?this._v[n]:void 0},t.has=function(t){return r(this,t)},t.keys=function(){return this._k.slice(0)},t.set=function(t,i){return this._v[r(this,t)?n:this._k.push(t)-1]=i,this},t.values=function(){return this._v.slice(0)},self.Map=s;function s(t){i(this,{_k:{value:[]},_v:{value:[]}}),t&&t.forEach(e,this)}function e(t){this.set(t[0],t[1])}function r(t,i){return-1<(n=t._k.indexOf(i))}function h(t,i){return[t,this[i]]}}(0,Object.defineProperties)}