• Filter an array without allocating a new one.

    Type Parameters

    • T

    Parameters

    • ts: T[]

      an array of things

    • pred: ((t) => boolean)

      function to check if a thing is valid

        • (t): boolean
        • Parameters

          • t: T

          Returns boolean

    Returns T[]

    same array with only valid things

Generated using TypeDoc