islclosure
Returns whether the given function is a Luau closure.
function islclosure(funcfuncfunctionThe function to inspect.: function): booleanbooleantrue if the function is a Luau closure.Usage
Check closure type
print(islclosure(function() end)) --> true
print(islclosure(print)) --> false