-
Notifications
You must be signed in to change notification settings - Fork 0
Mint.utils.isFunction
Tania Shatilova edited this page Nov 10, 2015
·
1 revision
The isFunction() method determines whether the tested object is Function.
var testedObject = new function(){};
var isFunction = Mint.utils.isFunction(testedObject);- value - (object) An object for check.
true if the tested object is Function; otherwise, false.
function test(){ };
Mint.utils.isFunction(test); // true
Mint.utils.isFunction("a"); // false
Mint.utils.isFunction(null); // false
Mint.utils.isFunction([1, 2, 3]); // false