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

# up.layer.isFront()

Returns whether the [current layer](https://unpoly.com/api/up.layer.current.md) is the [frontmost layer](https://unpoly.com/api/up.layer.front.md).

This is a shortcut for `up.layer.current.isFront()`. See [`up.Layer#isFront()`](https://unpoly.com/api/up.Layer.prototype.isFront.md) for more documentation.

---

## Return value {#return-value}

Type: boolean

