/** * Returns `true` if the predicate is satisfied by the wrapped value. * * @tsplus static Maybe.Aspects exists * @tsplus pipeable Maybe exists */ export function exists(predicate: Predicate) { return (self: Maybe): boolean => self.isNone() ? false : predicate(self.value) }