From 08b1a620305a9261758269829845826f2f3a0594 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Sat, 18 Dec 2021 10:21:01 -0500 Subject: [PATCH] Implement delete method --- arrayStringMap.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arrayStringMap.ts b/arrayStringMap.ts index 9579dc4..2b58681 100644 --- a/arrayStringMap.ts +++ b/arrayStringMap.ts @@ -35,7 +35,10 @@ export default class ArrayStringMap implements Map { } delete(key: K): boolean { - return false; + const encoded = this.encodeArray(key) + const retval = this._map.delete(encoded) + this._converterInfo.delete(encoded); + return retval; } * entries(): IterableIterator<[K, V]> {