( condition: unknown, message?: string, )
| 3 | * Throws an error if the condition is false. |
| 4 | */ |
| 5 | export function assert( |
| 6 | condition: unknown, |
| 7 | message?: string, |
| 8 | ): asserts condition { |
| 9 | if (!condition) { |
| 10 | throw new Error(message || `Assertion failed`) |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * A map that returns a default value for keys that are not present. |
nothing calls this directly
no outgoing calls
no test coverage detected