MCPcopy Create free account
hub / github.com/capsidjs/capsid / check

Function check

src/assert.js:8–12  ·  view source on GitHub ↗
(assertion: boolean, message: string)

Source from the content-addressed store, hash-verified

6 * @param {string} message The assertion message
7 */
8export default function check (assertion: boolean, message: string) {
9 if (!assertion) {
10 throw new Error(message)
11 }
12}
13
14/**
15 * @param {any} classNames The class names

Callers 6

getFunction · 0.85
index.jsFile · 0.85
registerFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected