( map: Map<Key, Value> | undefined, key: Key, value?: Value, )
| 38 | arrayMap([...(coll?.entries() ?? [])], ([key, value]) => cb(value, key)); |
| 39 | |
| 40 | export const mapSet = <Key, Value>( |
| 41 | map: Map<Key, Value> | undefined, |
| 42 | key: Key, |
| 43 | value?: Value, |
| 44 | ): Map<Key, Value> | undefined => |
| 45 | isUndefined(value) ? (collDel(map, key), map) : map?.set(key, value); |
| 46 | |
| 47 | export const mapEquals = <Key, Value>( |
| 48 | map1: Map<Key, Value>, |
no test coverage detected
searching dependent graphs…