(assertFn, shouldBeArray, opt_message)
| 191 | * @throws {Error} when shouldBeArray is not an Array |
| 192 | */ |
| 193 | export function assertArray(assertFn, shouldBeArray, opt_message) { |
| 194 | return assertType_( |
| 195 | assertFn, |
| 196 | shouldBeArray, |
| 197 | isArray(shouldBeArray), |
| 198 | 'Array expected', |
| 199 | opt_message |
| 200 | ); |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * Throws an error if the first argument isn't a boolean. |
nothing calls this directly
no test coverage detected