Function: isPropertyKey()
isPropertyKey(
val):val is PropertyKey
Checks if a given value is a valid PropertyKey. A PropertyKey is a string, number, or symbol that can be used as a property name.
Parameters
val
unknown
The value to check.
Returns
val is PropertyKey
True if the value is a PropertyKey, false otherwise.
