Skip to content

Mint.utils.isFunction

Tania Shatilova edited this page Nov 10, 2015 · 1 revision

The isFunction() method determines whether the tested object is Function.

Syntax

var testedObject = new function(){};
var isFunction = Mint.utils.isFunction(testedObject);

Parameters

  • value - (object) An object for check.

Return Value

true if the tested object is Function; otherwise, false.

Examples

function test(){ };
Mint.utils.isFunction(test);       // true
Mint.utils.isFunction("a");        // false
Mint.utils.isFunction(null);       // false
Mint.utils.isFunction([1, 2, 3]);  // false

Clone this wiki locally