Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ isPropertyKey
Function
isPropertyKey
packages/effect/src/Predicate.ts:721–723 ·
view source on GitHub ↗
(u: unknown)
Source
from the content-addressed store, hash-verified
719
* @since 4.0.0
720
*/
721
export
function
isPropertyKey(u: unknown): u is PropertyKey {
722
return
isString(u) || isNumber(u) || isSymbol(u)
723
}
724
725
/**
726
* Checks whether a value is a `
function
`.
Callers
nothing calls this directly
Calls
3
isNumber
Function · 0.85
isSymbol
Function · 0.85
isString
Function · 0.70
Tested by
no test coverage detected