MCPcopy Index your code
hub / github.com/ampproject/amphtml / assertBoolean

Method assertBoolean

src/utils/log.js:488–494  ·  view source on GitHub ↗

* Throws an error if the first argument isn't a boolean. * * For more details see `assert`. * * @param {*} shouldBeBoolean * @param {!Array|string=} opt_message The assertion message * @return {boolean} The boolean value. * @closurePrimitive {asserts.matchesReturn}

(shouldBeBoolean, opt_message)

Source from the content-addressed store, hash-verified

486 * @closurePrimitive {asserts.matchesReturn}
487 */
488 assertBoolean(shouldBeBoolean, opt_message) {
489 return assertions.assertBoolean(
490 this.boundAssertFn_,
491 shouldBeBoolean,
492 opt_message
493 );
494 }
495}
496
497/**

Callers 9

input.jsFile · 0.80
input.jsFile · 0.80
test-log.jsFile · 0.80
devAssertBooleanFunction · 0.80
userAssertBooleanFunction · 0.80
handleToggleClass_Method · 0.80
handleToggleChecked_Method · 0.80
assertAndParseConfig_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected