(O: Order<A>)
| 924 | * @since 4.0.0 |
| 925 | */ |
| 926 | export const isBetween = <A>(O: Order<A>): { |
| 927 | (options: { |
| 928 | minimum: A |
| 929 | maximum: A |
| 930 | }): (self: A) => boolean |
| 931 | (self: A, options: { |
| 932 | minimum: A |
| 933 | maximum: A |
| 934 | }): boolean |
| 935 | } => |
| 936 | dual( |
| 937 | 2, |
| 938 | (self: A, options: { |
| 939 | minimum: A |
| 940 | maximum: A |
| 941 | }): boolean => !isLessThan(O)(self, options.minimum) && !isGreaterThan(O)(self, options.maximum) |
| 942 | ) |
| 943 | |
| 944 | /** |
| 945 | * Creates a `Reducer` for combining `Order` instances, useful for aggregating orders in collections. |
no test coverage detected
searching dependent graphs…