* Checks that a condition is truthy, throwing a specified message if condition * fails. The `asserts condition` return type allows TypeScript to narrow the * types of the condition and enforce stricter types without further if/else * checks or nullish coalescing. * * @example * assert(object.o
(condition, msg)
| 19 | * @ignore |
| 20 | */ |
| 21 | function assert(condition, msg) { |
| 22 | if (!condition) { |
| 23 | throw new DeveloperError(msg); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | export default assert; |
no outgoing calls
searching dependent graphs…