diff --git a/static/js/fold_dict.ts b/static/js/fold_dict.ts index d7ce31aae6..893860b5f1 100644 --- a/static/js/fold_dict.ts +++ b/static/js/fold_dict.ts @@ -17,6 +17,10 @@ type KeyValue = {k: string; v: V}; export class FoldDict { private _items: Map> = new Map(); + get size(): number { + return this._items.size; + } + get(key: string): V | undefined { const mapping = this._items.get(this._munge(key)); if (mapping === undefined) { @@ -56,10 +60,6 @@ export class FoldDict { } } - get size(): number { - return this._items.size; - } - clear(): void { this._items.clear(); }