Determines if a variable is a user defined function
isCustomFunction(Object)
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
Object | any | Yes | The variable to test |
Here we’ve example to check the given variable is user defined function or not.
function myfunc() {
return 1;
}
writeDump( isCustomFunction(myfunc) );
Here we’ve example to check the given variable is user defined function or not.
myfunc ="2";
writeDump( isCustomFunction(myfunc) );