( compare: (self: A, that: A) => -1 | 0 | 1 )
| 114 | * @since 2.0.0 |
| 115 | */ |
| 116 | export function make<A>( |
| 117 | compare: (self: A, that: A) => -1 | 0 | 1 |
| 118 | ): Order<A> { |
| 119 | return (self, that) => self === that ? 0 : compare(self, that) |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Order instance for strings that compares them lexicographically using JavaScript's `<` operator. |
no test coverage detected