> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# ishiddenstack

> Returns whether a function, or the function at a stack level, is marked as hidden. target must be a function or stack level number. Invalid stack levels raise "Level out of range". isstackhidden is an alias.

Returns whether a function, or the function at a stack level, is marked as hidden. target must be a function or stack level number. Invalid stack levels raise "Level out of range". isstackhidden is an alias.

## Syntax

```lua theme={null}
ishiddenstack(target: function | number): boolean
```

## Aliases

* `isstackhidden`

## Arguments

| Name     | Type                 | Required | Description                              |
| -------- | -------------------- | -------- | ---------------------------------------- |
| `target` | `function \| number` | Yes      | Function or stack level number to check. |

## Returns

| Name     | Type      | Description                                                           |
| -------- | --------- | --------------------------------------------------------------------- |
| `hidden` | `boolean` | true when the resolved function is marked as hidden; otherwise false. |

## Example

Check whether a function closure is present in hidden stack tracking.

```lua theme={null}
local function target()
end

print(ishiddenstack(target))
```
