• Segregate an iterable list into a true-ish and false-ish iterable. The first element of the result will contain the all elements where the filter returns a true-ish value the second element of the result of the result will contain all items for which the filter returned a false-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>, Iterable<T>]