(isEquivalent: (self: A, that: A) => boolean)
| 2076 | * @since 2.0.0 |
| 2077 | */ |
| 2078 | export const containsWith = <A>(isEquivalent: (self: A, that: A) => boolean): { |
| 2079 | (a: A): (self: Option<A>) => boolean |
| 2080 | (self: Option<A>, a: A): boolean |
| 2081 | } => dual(2, (self: Option<A>, a: A): boolean => isNone(self) ? false : isEquivalent(self.value, a)) |
| 2082 | |
| 2083 | /** |
| 2084 | * Checks whether an `Option` contains a value equal to the given one, using default |