Type guard for a valid WeakKey (object, function, or symbol).
WeakMaps and WeakSets can only use objects (including functions) or symbols
as keys, not primitives like strings, numbers, booleans, null, or undefined.
Parameters
value: unknown
Value to check
Returns valueisWeakKey
true if the value is a valid WeakKey (object, function, or
symbol), false otherwise
Type guard for a valid WeakKey (object, function, or symbol).
WeakMaps and WeakSets can only use objects (including functions) or symbols as keys, not primitives like strings, numbers, booleans, null, or undefined.