isnewcclosure
Recognizes wrappers created by newcclosure.
Syntax
Signature
isnewcclosure(Function: function) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Function | function | Function to inspect. |
Returns
| Type | Description |
|---|---|
boolean | True when this VM recorded the function as a newcclosure wrapper. |
Example
Luau
local Result = isnewcclosure(function() return 42 end)
print(Result)