---
name: "up.layer.overlays"
area: "API"
kind: "JavaScript property"
parent: "up.layer module"
url: "https://unpoly.com/api/up.layer.overlays"
---
<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.overlays

Returns an array of all [overlays](https://unpoly.com/learn/overlays.md#layer-modes).

If no overlay is open, an empty array is returned.

To get an array of _all_ layers including the [root layer](https://unpoly.com/api/up.layer.root.md), use [`up.layer.stack`](https://unpoly.com/api/up.layer.stack.md).

---

## Value {#value}

### overlays {#overlays}

Type: [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[up.Layer](https://unpoly.com/api/up.Layer.md)>

