---
title: "isnewlclosure"
description: "Checks whether Byte tracks the function as a newlclosure wrapper."
---

```lua
isnewlclosure(fn: function): boolean
```

---

## Aliases

None.

---

## Arguments

<ParamField body="fn" type="function" required>
  The function to inspect or wrap.
</ParamField>

---

## Returns

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

---

## Example

```lua
local wrapped = newlclosure(tostring)
print(isnewlclosure(wrapped))
```
