• Creates a new Option from t, but only it will be Some when predicate(t) returns true.

    Type Parameters

    • T

    Parameters

    • predicate: ((t) => boolean)

      The function to decide the value should be contained.

        • (t): boolean
        • Parameters

          • t: T

          Returns boolean

    Returns ((t) => Option<T>)

    The new optional.

Generated using TypeDoc