---
name: "up.util.isGiven"
area: "API"
kind: "JavaScript function"
parent: "up.util module"
url: "https://unpoly.com/api/up.util.isGiven"
---
<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.isGiven(value)

Returns whether the given argument is neither `undefined` nor `null`.

For the opposite of `up.util.isGiven()` see [`up.util.isMissing()`](https://unpoly.com/api/up.util.isMissing.md).

> #### Important
>
> Unpoly's concept of "given" does not correspond to JavaScript's concept of [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy). Empty strings or the number zero are not truthy, but _are_ considered to be "given".

---

## Parameters {#parameters}

### value {#value}

(required)

Type: any

---

## Return value {#return-value}

Type: boolean

