0
Let’s say I have some variable, defined as:
var xpto = function() {/* Faz alguma coisa */};
I need to compare if the type of the variable is a function, ie:
function isFunction(f) {if (f is (function type?)) {/* ... */}};
isFunction(xpto);
So how can I check whether the variable xpto
is the type function
?