IsClosure
Determine whether a given object is a closure
Method Signature
IsClosure(object=[any])Arguments
Argument
Type
Required
Description
Default
object
any
true
The value to test for closure-ness.
Examples
Returns true if the object is a closure
square = ( Any x ) => {
return x * x;
};
writeDump( isClosure( square ) );
Result: TRUE
Returns false if the object is not a closure
Result: FALSE
Additional Examples
Related
Last updated
Was this helpful?
