MCPcopy
hub / github.com/bvaughn/react-window / assert

Function assert

lib/utils/assert.ts:1–10  ·  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 console.error(message);
7
8 throw Error(message);
9 }
10}

Callers 6

List.test.tsxFile · 0.90
useDynamicRowHeightFunction · 0.90
shallowCompareFunction · 0.90
getEstimatedSizeFunction · 0.90
useItemSizeFunction · 0.90
getFunction · 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…