(shouldBeArray, opt_message)
| 154 | * @throws {Error} when shouldBeArray is not an Array |
| 155 | */ |
| 156 | export function devAssertArray(shouldBeArray, opt_message) { |
| 157 | if (mode.isMinified()) { |
| 158 | return /** @type {void} */ (shouldBeArray); |
| 159 | } |
| 160 | devAssertDceCheck(); |
| 161 | |
| 162 | return assertions.assertArray( |
| 163 | /** @type {import('./base').AssertionFunctionDef} */ (devAssert), |
| 164 | shouldBeArray, |
| 165 | opt_message |
| 166 | ); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Throws an error if the first argument isn't a boolean. |
nothing calls this directly
no test coverage detected