Find the first element in the array that matches any of the matchers.
Matchers are evaluated by priority provided by the order of the matchers in the array.
Type Parameters
T
Parameters
items: T[]
Array of items to search
matchers: Iterable<((field) => boolean)>
Matchers to evaluate
Returns T | undefined
First matching item or undefined if no match was found
Find the first element in the array that matches any of the matchers. Matchers are evaluated by priority provided by the order of the matchers in the array.