MCPcopy
hub / github.com/vuejs/composition-api / assert

Function assert

src/utils/utils.ts:43–47  ·  view source on GitHub ↗
(condition: any, msg: string)

Source from the content-addressed store, hash-verified

41}
42
43export function assert(condition: any, msg: string) {
44 if (!condition) {
45 throw new Error(`[vue-composition-api] ${msg}`)
46 }
47}
48
49export function isPrimitive(value: any): boolean {
50 return (

Callers 4

getVueConstructorFunction · 0.90
initSetupFunction · 0.90
queueFlushJobFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…