IsClosure()

Checks if given Object is a closure or not.

IsClosure( object=any );

Returns: Boolean

Argument Description
object
any, required

The object that is checked.

Alias: obj, value

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