MCPcopy
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
29function isPrimitive(value: unknown) {
30 return (
31 value === null || (typeof value !== 'function' && typeof value !== 'object')
32 )
33}
34
35export function parseError(e: unknown) {
36 let error = e as TestError

Callers 1

parseErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected