MCPcopy Index your code
hub / github.com/amasad/debug_utils / assert

Function assert

du.js:525–527  ·  view source on GitHub ↗

* Throw if `conditiont` is not truthy. * * @param {*} condition * @param {string} message * @private

(condition, message)

Source from the content-addressed store, hash-verified

523 */
524
525function assert(condition, message) {
526 if (!condition) throw new Error(message);
527}
528
529/**
530 * Applies the first method that exists on `object` from `methods`. Otherwise

Callers 3

debugEventFunction · 0.85
wrapMethodFunction · 0.85
test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected