(callbackFn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any)
| 67 | } |
| 68 | |
| 69 | public forEach(callbackFn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any) { |
| 70 | if (this._es6Map != null) { |
| 71 | const callbackWrapper = (value: V, key: K) => callbackFn.call(thisArg, value, key, this); |
| 72 | this._es6Map.forEach(callbackWrapper, thisArg); |
| 73 | return; |
| 74 | } |
| 75 | |
| 76 | this._keyValuePairs.forEach((keyValuePair) => { |
| 77 | callbackFn.call(thisArg, keyValuePair.value, keyValuePair.key, this); |
| 78 | }); |
| 79 | } |
| 80 | |
| 81 | public delete(key: K) { |
| 82 | if (this._es6Map != null) { |
no outgoing calls
no test coverage detected