MCPcopy Create free account
hub / github.com/visgl/react-map-gl / assert

Function assert

modules/react-mapbox/src/utils/assert.ts:1–5  ·  view source on GitHub ↗
(condition: any, message: string)

Source from the content-addressed store, hash-verified

1export default function assert(condition: any, message: string) {
2 if (!condition) {
3 throw new Error(message);
4 }
5}

Callers 2

updateSourceFunction · 0.50
updateLayerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…