(assertFn, shouldBeNumber, opt_message)
| 169 | * @throws {Error} when shouldBeNumber is not an Number |
| 170 | */ |
| 171 | export function assertNumber(assertFn, shouldBeNumber, opt_message) { |
| 172 | return assertType_( |
| 173 | assertFn, |
| 174 | shouldBeNumber, |
| 175 | typeof shouldBeNumber == 'number', |
| 176 | 'Number expected', |
| 177 | opt_message |
| 178 | ); |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Throws an error if the first argument is not an array. |
nothing calls this directly
no test coverage detected