(v)
| 38 | |
| 39 | // Returns -1 if v < 0, 1 if v > 0, and 0 if v == 0 |
| 40 | function sign(v) { |
| 41 | return (v > 0) - (v < 0); |
| 42 | } |
| 43 | |
| 44 | // Returns 1 if a < b and -1 otherwise |
| 45 | // (For the purposes of this module we don't care about the case where a == b) |
no outgoing calls
no test coverage detected
searching dependent graphs…