method Iterator.prototype.takeimport { Iterator } from "https://deno.land/x/ahh@v0.14.0/src/iterator.ts"; take(n: number): Iterator<T>Creates an Iterator that takes the first n items. ExamplesExample 1 import { assert } from "../test_deps.ts"; import I from "./iterator.ts"; const iter = I.fromIter([1, 2, 3]).take(2); assert(iter.next() === 1); assert(iter.next() === 2); Parametersn: numberReturnsIterator<T>