* Check if a value can be used as a WeakMap key. * WeakMap keys must be objects or non-registered symbols.
(value: unknown)
| 20 | * WeakMap keys must be objects or non-registered symbols. |
| 21 | */ |
| 22 | function isWeakMapKey(value: unknown): value is object { |
| 23 | return (typeof value === 'object' && value !== null) || typeof value === 'function'; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Mark an object as instrumented, storing the instrumented version. |
no outgoing calls
no test coverage detected