@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 389 B
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
class s{constructor(){this._keys=[],this._map=new Map}set(s,t){let e=0;for(;e<this._keys.length&&this._keys[e]<s;)e++;return this._keys.splice(e,0,s),this._map.set(s,t),this}get(s){let t=this._keys[0];for(const e of this._keys)s>=e&&(t=e);return this._map.get(t)}clear(){this._keys=[],this._map.clear()}}export{s as default};