UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

12 lines (11 loc) 640 B
import { FindOptions } from './findoptions'; /** * Returns the value of the first element in the provided iterable that satisfies the provided testing function. * * @export * @template T The type of the elements in the source sequence. * @param {Iterable<T>} source An iterable sequence whose elements to apply the predicate to. * @param {FindOptions<T>} options The options for a predicate for filtering, thisArg for binding and AbortSignal for cancellation. * @returns {(T | undefined)} The first element that matches the predicate. */ export declare function find<T>(source: Iterable<T>, options: FindOptions<T>): T | undefined;