MCPcopy
hub / github.com/bvaughn/react-error-boundary / assert

Function assert

lib/utils/assert.ts:1–8  ·  view source on GitHub ↗
(
  expectedCondition: unknown,
  message: string = "Assertion error",
)

Source from the content-addressed store, hash-verified

1export function assert(
2 expectedCondition: unknown,
3 message: string = "Assertion error",
4): asserts expectedCondition {
5 if (!expectedCondition) {
6 throw Error(message);
7 }
8}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…