• Returns the first thing which is valid.

    Type Parameters

    • T

    • U

    Parameters

    • ts: Iterable<T>

      list of things

    • pred: ((t) => t is U)

      function to check if a thing is valid

        • (t): t is U
        • Parameters

          • t: T

          Returns t is U

    Returns U | undefined

    a thing or undefined if none are valid

Generated using TypeDoc