(value: any)
| 26 | * everything (which has no consistent order and cannot be indexed or sorted). |
| 27 | */ |
| 28 | export function isUnorderable(value: any): boolean { |
| 29 | return ( |
| 30 | (typeof value === `number` && Number.isNaN(value)) || |
| 31 | (value instanceof Date && Number.isNaN(value.getTime())) |
| 32 | ) |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Universal comparison function for all data types |
no outgoing calls
no test coverage detected