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