Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

filterForOption

Returns None if the option is None, otherwise the result should be resolved by the result of predicate with the wrapped value as the arguments:

 * `Some(t)` if _predicate_ returns `true`.
 * `None` if _predicate_ returns `false`.
function filterForOption<T>(input: Option<T>, predicate: FilterFn<T>): Option<T>;
§
filterForOption<T>(input: Option<T>, predicate: FilterFn<T>): Option<T>
[src]

§Type Parameters

§Parameters

§
input: Option<T>
[src]
§
predicate: FilterFn<T>
[src]

§Return Type