method Peekable.prototype.nextIfimport { Peekable } from "https://deno.land/x/ahh@v0.12.0/src/iterator.ts"; nextIf(fn: (_: T) => boolean): Option<T>Returns the next item if fn returns true. ExamplesExample 1 import { default as I } from "./iterator.ts"; const iter = I.iter([1, 2, 3]).peekable(); console.log(iter.nextIf((i) => i % 2 !== 0)); Parametersfn: (_: T) => booleanReturnsOption<T>