islclosure
Returns true when the function is a Luau closure, written in Luau rather than natively.
Signature
islclosure(fn: (...any) -> ...any): booleanParameters
fnfunctionThe function to test.
Returns
boolean
Example
print(islclosure(function() end)) --> true
print(islclosure(print)) --> false