(O: Order<A>)
| 956 | * @since 4.0.0 |
| 957 | */ |
| 958 | export const isBetween = <A>(O: Order<A>): { |
| 959 | (options: { |
| 960 | minimum: A |
| 961 | maximum: A |
| 962 | }): (self: A) => boolean |
| 963 | (self: A, options: { |
| 964 | minimum: A |
| 965 | maximum: A |
| 966 | }): boolean |
| 967 | } => |
| 968 | dual( |
| 969 | 2, |
| 970 | (self: A, options: { |
| 971 | minimum: A |
| 972 | maximum: A |
| 973 | }): boolean => !isLessThan(O)(self, options.minimum) && !isGreaterThan(O)(self, options.maximum) |
| 974 | ) |
| 975 | |
| 976 | /** |
| 977 | * Creates a `Reducer` for combining `Order` instances, useful for aggregating orders in collections. |
no test coverage detected