* Get the minimum of two values, handling both numbers and Dates
(a: any, b: any)
| 1173 | * Get the minimum of two values, handling both numbers and Dates |
| 1174 | */ |
| 1175 | function minValue(a: any, b: any): any { |
| 1176 | if (a instanceof Date && b instanceof Date) { |
| 1177 | return a.getTime() < b.getTime() ? a : b |
| 1178 | } |
| 1179 | return Math.min(a, b) |
| 1180 | } |
| 1181 | |
| 1182 | function areCompareOptionsEqual( |
| 1183 | a: { direction?: `asc` | `desc`; [key: string]: any }, |
no outgoing calls
no test coverage detected