IsClosure()
Checks if given Object is a closure or not.
IsClosure( object=any );
Returns: Boolean
Examples
// closure
c = function(){
return true;
};
// user defined function (UDF)
function u() {
return true;
}
dump(var=isClosure(c), label="closure");
dump(var=isClosure(u), label="user defined function");
See also
- Components (CFCs)
- Decision logic
- IsCustomFunction()
- <cffunction>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)