Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ isPrimitive
Function
isPrimitive
packages/ui/client/composables/error.ts:29–33 ·
view source on GitHub ↗
(value: unknown)
Source
from the content-addressed store, hash-verified
27
}
28
29
function
isPrimitive(value: unknown) {
30
return
(
31
value === null || (typeof value !==
'function'
&& typeof value !==
'object'
)
32
)
33
}
34
35
export
function
parseError(e: unknown) {
36
let
error = e as TestError
Callers
1
parseError
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected