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

Function userAssertArray

src/core/assert/user.js:124–130  ·  view source on GitHub ↗
(shouldBeArray, opt_message)

Source from the content-addressed store, hash-verified

122 * @throws {Error} when shouldBeArray is not an Array
123 */
124export function userAssertArray(shouldBeArray, opt_message) {
125 return assertions.assertArray(
126 /** @type {import('./base').AssertionFunctionDef} */ (userAssert),
127 shouldBeArray,
128 opt_message
129 );
130}
131
132/**
133 * Throws an error if the first argument isn't a boolean.

Callers

nothing calls this directly

Calls 1

assertArrayMethod · 0.80

Tested by

no test coverage detected