(condition, msg1, msg2)
| 340 | // Assertion & errors |
| 341 | var REDUCE_ERROR = 'Reduce of empty object with no initial value'; |
| 342 | function assert(condition, msg1, msg2){ |
| 343 | if(!condition)throw TypeError(msg2 ? msg1 + msg2 : msg1); |
| 344 | } |
| 345 | function assertDefined(it){ |
| 346 | if(it == undefined)throw TypeError('Function called on null or undefined'); |
| 347 | return it; |
no outgoing calls
no test coverage detected