iscclosure
Checks whether a function is a C closure.
Syntax
Signature
iscclosure(Function: function) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Function | function | Function to inspect. |
Returns
| Type | Description |
|---|---|
boolean | True for a native C closure. |
Notes
Passing a value that is not a function raises an argument error.
Example
Luau
print(iscclosure(print))