(s: Sign | undefined)
| 109 | |
| 110 | /** |
| 111 | * Sign `s` is <= 0. |
| 112 | * |
| 113 | * |
| 114 | * **note**: returns *undefined* where sign does not apply to the field of reals, or does not convey |
| 115 | * enough information. |
| 116 | * |
| 117 | * @param s |
| 118 | */ |
| 119 | export function nonPositiveSign(s: Sign | undefined): boolean | undefined { |
| 120 | if (s === undefined) return undefined; |
| 121 | |
| 122 | if ((['negative', 'non-positive', 'zero'] as Sign[] as Sign[]).includes(s)) |
| 123 | return true; |
| 124 | //Definitely positive |
no outgoing calls
no test coverage detected