(x: unknown)
| 3 | |
| 4 | type KeyedCollection = Set<unknown> | Map<unknown, unknown>; |
| 5 | function isKeyedCollection(x: unknown): x is KeyedCollection { |
| 6 | return x instanceof Set || x instanceof Map; |
| 7 | } |
| 8 | |
| 9 | function prototypesEqual(a: object, b: object) { |
| 10 | const pa = Object.getPrototypeOf(a); |