isnewcclosure

Recognizes wrappers created by newcclosure.

Syntax

Signature
isnewcclosure(Function: function) -> boolean

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
FunctionfunctionFunction to inspect.

Returns

TypeDescription
booleanTrue when this VM recorded the function as a newcclosure wrapper.

Example

Luau
local Result = isnewcclosure(function() return 42 end)
print(Result)