---
name: "up.Layer.prototype.isRoot"
area: "API"
kind: "Instance method"
parent: "up.Layer class"
url: "https://unpoly.com/api/up.Layer.prototype.isRoot"
---
<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.isRoot()

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

---

## Return value {#return-value}

Whether this layer is the root layer.

Type: boolean

