/is-function is-function
isFunction(value)
Parameters
- value
{*}
:the item to test for being a function
Returns
{Boolean}
:
True if the provided argument is a function.
var isFunction = require("can-util/js/is-function/is-function");
console.log(isFunction(function(){})); // -> true
console.log(isFunction({})); // -> false