function filterimport { filter } from "https://deno.land/x/iterators@v0.2.0/filter.ts"; filter<T>(iterable: Iterable<T>, fn: (x: T) => boolean): Generator<T>Generator items of iterable for where fn of that item is truthy. ExamplesExample 1 [...filter([0, 1, 2, 1], (x) => x === 1)] // => [1, 1] Type ParametersTParametersiterable: Iterable<T>Filter items using this function. fn: (x: T) => booleanThe iterable to filter. ReturnsGenerator<T>