0.1.0 • Published 10 years ago

sak-isfunction v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

Sak-isfunction

Version 0.1.0.

Utility for testing if a variable is a function.

Created by Thomas de Zeeuw, thomasdezeeuw@gmail.com (https://thomasdezeeuw.nl/).

Released under a MIT license.

Exports

IsFunction

Function, public.

Test if an variable is a function.

Example

var obj1 = function () {} , obj2 = 'not a function';
var test1 = isFunction(obj1) , test2 = isFunction(obj2);

console.log('test1', test1) // test1 true
console.log('test2', test2) // test2 false

Params

NameDescriptionType
fnVariable that might be a function.Object

Return

DescriptionType
Whether or not it's a function.Boolean

Generated by Node-doc(https://github.com/Thomasdezeeuw/node-doc/ \"Node-doc\").

0.1.0

10 years ago