*Theaboveisjustanexample.Use[`locate-path`](https://github.com/sindresorhus/locate-path) if you need this.*
##API
###pLocate(input,tester,options?)
Returnsa`Promise` that is fulfilled when `tester` resolves to `true` or the iterable is done, or rejects if any of the promises reject. The fulfilled value is the current iterable value or `undefined` if `tester` never resolved to `true`.
####input
Type:`Iterable<Promise | unknown>`
Aniterableofpromises/valuestotest.
####tester(element)
Type:`Function`
Thisfunctionwillreceiveresolvedvaluesfrom`input` and is expected to return a `Promise<boolean>` or `boolean`.