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

# up.Layer.prototype.isCurrent()

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

---

## Return value {#return-value}

Whether this layer is the current layer.

Type: boolean

