• Returns the first mapped value of the array which is not undefined.

    Type Parameters

    • T
    • R

    Parameters

    • array: Iterable<T>
    • mapFn: ((value) => undefined | R)
        • (value): undefined | R
        • Parameters

          • value: T

          Returns undefined | R

    Returns R | undefined