Mfind
Bun

method

url.URLSearchParamsIterator.find

find<S>(
predicate: (value: T, index: number) => value is S
): undefined | S;

Returns the value of the first element in this iterator where predicate is true, and undefined otherwise.

@param predicate

find calls predicate once for each element of this iterator, in order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

predicate: (value: T, index: number) => unknown
): undefined | T;