Skip to content

Array method: findOneByAny

Latest
Compare
Choose a tag to compare
@jeffz7 jeffz7 released this 12 May 10:27
· 4 commits to main since this release

Iterates over elements of array, returning an item where
predicates returns truthy for. The first function in the
predicates array will get the higher priority so even if
it gets a match with any other predicates, the function will
continue to look for other items in the array until it finds an item that
matches the first predicate or till the end of array