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

Function userAssertBoolean

src/core/assert/user.js:142–148  ·  view source on GitHub ↗
(shouldBeBoolean, opt_message)

Source from the content-addressed store, hash-verified

140 * @throws {Error} when shouldBeBoolean is not an Boolean
141 */
142export function userAssertBoolean(shouldBeBoolean, opt_message) {
143 return assertions.assertBoolean(
144 /** @type {import('./base').AssertionFunctionDef} */ (userAssert),
145 shouldBeBoolean,
146 opt_message
147 );
148}

Callers

nothing calls this directly

Calls 1

assertBooleanMethod · 0.80

Tested by

no test coverage detected