• Split an array into two array based on a true/false condition function

    Type Parameters

    • T

    Parameters

    • list: readonly T[]
    • condition: ((item) => boolean)
        • (item): boolean
        • Parameters

          • item: T

          Returns boolean

    Returns [T[], T[]]