(statement: boolean, error: string)
| 4 | * @param error The message which is passed into an Error |
| 5 | */ |
| 6 | export function assert(statement: boolean, error: string): void { |
| 7 | if (!statement) { |
| 8 | throw new Error(error); |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Make sure that the given value is within the range |
no outgoing calls
no test coverage detected