sequency
Version:
Functional sequences for processing iterable data in JavaScript
11 lines (10 loc) • 395 B
TypeScript
import Sequence from "./Sequence";
export declare class ForEachIndexed {
/**
* Performs the given `action` (side-effect) for each element of the sequence and passes the `index` of the current
* element (zero-based).
*
* @param {(index: number, value: T) => void} action
*/
forEachIndexed<T>(this: Sequence<T>, action: (index: number, value: T) => void): void;
}