( obj: NestedObjectMap<K, T>, key: K, value: T | NestedObjectMap<K, T>, )
| 49 | } |
| 50 | |
| 51 | function assignValueWithKey<K, T>( |
| 52 | obj: NestedObjectMap<K, T>, |
| 53 | key: K, |
| 54 | value: T | NestedObjectMap<K, T>, |
| 55 | ): NestedObjectMap<K, T> { |
| 56 | return { |
| 57 | ...obj, |
| 58 | ...Object.fromEntries([[key, value]]), |
| 59 | }; |
| 60 | } |
| 61 | |
| 62 | function hash(obj: ?Object): number { |
| 63 | if (!obj) { |