(val: number | NullUndefined)
| 1268 | * special handling and it will not be supported until required. So we simply ignore it here. |
| 1269 | */ |
| 1270 | export function isValidNumberForExtent(val: number | NullUndefined): boolean { |
| 1271 | // Considered that number could be `NaN` and `Infinity` and should not write into the extent. |
| 1272 | // Note that `Infinity` is the initialized value from `initExtentForUnion` and may be inputted. |
| 1273 | return val != null && isFinite(val); |
| 1274 | } |
| 1275 | |
| 1276 | export function isValidBoundsForExtent(start: number, end: number): boolean { |
| 1277 | return isValidNumberForExtent(start) && isValidNumberForExtent(end) && start <= end; |
no outgoing calls
no test coverage detected
searching dependent graphs…