• Filters the values in an iterator omnly returning items fro which the filter function returns a true-ish value

    Type Parameters

    • T

    Parameters

    • itr: Iterable<T>

      Iterator

    • filterFunc: ((item, index) => any)

      Filter function

        • (item, index): any
        • Parameters

          • item: T
          • index: number

          Returns any

    Returns Iterable<T>

    See

    Array.prototype.filter