vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function segregate

    • 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: T, index: number) => any

        Filter function

      Returns [Iterable<T, any, any>, Iterable<T, any, any>]