AIDC Toolkit / Utility / IndexedCallback
Type Alias: IndexedCallback()<TInput, TOutput>
IndexedCallback<
TInput,TOutput> = (input,index?) =>TOutput
Defined in: iterable-utility.ts:19
Indexed callback, used to map an input and optionally its index in an iterable to an output.
Type Parameters
TInput
TInput
Input type.
TOutput
TOutput
Output type.
Parameters
input
TInput
Input value.
index?
number
Index in iterable or undefined for single mapping).
Returns
TOutput
Output value.