$ npm install x-is-function
x is a function
npm install x-is-function
var isFunction = require('x-is-function')
isFunction(function () {})
// -> true
isFunction("hello")
// -> false
isFunction("")
// -> false
isFunction(9)
// -> false
isFunction(true)
// -> false
isFunction(new Date())
// -> false
isFunction({})
// -> false
isFunction(null)
// -> false
isFunction(undefined)
// -> false
a list of other x-is-...
modules can be found at
© 2010 - cnpmjs.org x YWFE | Home | YWFE