method Iterator.prototype.allimport { Iterator } from "https://deno.land/x/ahh@v0.14.0/src/iterator.ts"; all(fn: (item: T) => boolean): booleanConsumes this and returns whether fn returns true for all items. ExamplesExample 1 import { assert } from "../test_deps.ts"; import I from "./iterator.ts"; const odd = (i: number): boolean => i % 2 !== 0; const iter = I.fromIter([1, 3, 5]); assert(iter.all(odd)); Parametersfn: (item: T) => booleanReturnsboolean