(...express)
| 1 | function assert(...express) { |
| 2 | const l = express.length; |
| 3 | const msg = |
| 4 | typeof express[l - 1] === 'string' ? express[l - 1] : 'Assert Error'; |
| 5 | for (let b of express) { |
| 6 | if (!b) { |
| 7 | throw new Error(msg); |
| 8 | } |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | function randBin() { |
| 13 | return Math.random() >= 0.5; |
no outgoing calls
no test coverage detected