(isEquivalent: (self: A, that: A) => boolean)
| 2145 | * @since 2.0.0 |
| 2146 | */ |
| 2147 | export const containsWith = <A>(isEquivalent: (self: A, that: A) => boolean): { |
| 2148 | (a: A): (self: Option<A>) => boolean |
| 2149 | (self: Option<A>, a: A): boolean |
| 2150 | } => dual(2, (self: Option<A>, a: A): boolean => isNone(self) ? false : isEquivalent(self.value, a)) |
| 2151 | |
| 2152 | /** |
| 2153 | * Checks whether an `Option` contains a value equal to the given one, using default |
no test coverage detected