MCPcopy
hub / github.com/sveltejs/svelte / ok

Function ok

packages/svelte/tests/runtime-legacy/shared.ts:664–668  ·  packages/svelte/tests/runtime-legacy/shared.ts::ok
(value: any)

Source from the content-addressed store, hash-verified

662}
663
664export function ok(value: any): asserts value {
665 if (!value) {
666 throw new Error(`Expected truthy value, got ${value}`);
667 }
668}

Callers 15

testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90

Calls

no outgoing calls

Tested by 15

testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72
testFunction · 0.72