UNPKG

308 BTypeScriptView Raw
1import Sequence from "./Sequence";
2export declare class IndexOf {
3 /**
4 * Returns the zero-based index of the given `element` or -1 if the sequence does not contain the element.
5 *
6 * @param {T} element
7 * @returns {number}
8 */
9 indexOf<T>(this: Sequence<T>, element: T): number;
10}