---
name: "up.Params.prototype.getFirst"
area: "API"
kind: "Instance method"
parent: "up.Params class"
visibility: "experimental"
url: "https://unpoly.com/api/up.Params.prototype.getFirst"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Params class](https://unpoly.com/api/up.Params.md)</nav>

# up.Params.prototype.getFirst(name)

**This feature is experimental**. Please [share](https://github.com/unpoly/unpoly/discussions) your experiences so we know what to keep or change.

Returns the first param value with the given `name`.

Returns `undefined` if no param value with that name is set.

---

## Parameters {#parameters}

### name {#name}

(required)

Type: string

---

## Return value {#return-value}

The value of the param with the given name.

Type: any

