UNPKG

484 BTypeScriptView Raw
1/**
2 * Returns the element at a specified index in a sequence or undefined if the index is out of range.
3 * @param {Iterable<T>} source The source sequence.
4 * @param {number} index The zero-based index of the element to retrieve.
5 * @return {T} undefined if the index is outside the bounds of the source sequence; otherwise, the element at the
6 * specified position in the source sequence.
7 */
8export declare function elementAt<T>(source: Iterable<T>, index: number): T | undefined;