The type of elements in the input array.
The type of elements that the function can potentially return.
The array of items to process.
A function that takes an item of the array and returns a new value or undefined.
The first transformed value where the function returns a defined value, or undefined if no such value is found.
Generated using TypeDoc
Iterates over an array, applying a provided function to each element, and returns the first defined value returned by the function. If all function calls return undefined, the function itself returns undefined.