---
title: "isexecutorclosure"
description: "Checks whether Byte identifies a value as an executor-owned closure."
---

```lua
isexecutorclosure(value: any? = nil): boolean
```

---

## Aliases

- `isourclosure`
- `checkclosure`
- `isexecutorfunction`

---

## Arguments

<ParamField body="value" type="any" default={"nil"}>
  The value used by this operation.
</ParamField>

---

## Returns

<ResponseField name="result" type="boolean">
  Whether the queried condition holds.
</ResponseField>

Returns false for non-functions, including nil or an omitted argument. Classification depends on Byte tracking and capabilities; it does not identify an arbitrary function's author.

---

## Example

```lua
local function example() end
print(isexecutorclosure(example))
```
