---
name: "up.util.find"
area: "API"
kind: "JavaScript function"
parent: "up.util module"
url: "https://unpoly.com/api/up.util.find"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.util module](https://unpoly.com/api/up.util.md)</nav>

# up.util.find(list, tester)

Passes each element in the given [array-like value](https://unpoly.com/api/List.md) to the given function. Returns the first element for which the function returns a truthy value.

If no element matches, returns `undefined`.

---

## Parameters {#parameters}

### list {#list}

(required)

Type: [List](https://unpoly.com/api/List.md)<T>

### tester {#tester}

(required)

Type: Function(value): boolean

---

## Return value {#return-value}

Type: T | undefined

