function takeWhileimport { takeWhile } from "https://deno.land/x/iterators@v0.2.0/mod.ts"; takeWhile<T>(predicate: (x: T) => boolean, iterable: Iterable2<T>): Generator<T>Yield items of iterable until the predicate has returned false once. ExamplesExample 1 [...takeWhile((x) => x < 3, [0, 1, 2, 3, 2, 1, 0])] // => [0, 1, 2] Type ParametersTParameterspredicate: (x: T) => booleanThe function to test each item against. iterable: Iterable2<T>The iterable to check the items of. ReturnsGenerator<T>